西兰花构建dist -构建失败



我使用西兰花与插件如下所示:

  • broccoli-babel-transpiler
  • broccoli-funnel
  • broccoli-concat
  • broccoli-merge-trees

但是在运行broccoli build dist之后,我得到以下错误:

Error: ENOENT, no such file or directory 'E:newPojectses6-webistenode_modulesbroccoli-babel-transpilerindex.jsnode
_modulesbabel-core'
    at Error (native)
    at Object.fs.readdirSync (fs.js:765:18)
    at walkSync (E:newPojectses6-webistenode_modulesbroccoli-funnelnode_moduleswalk-syncindex.js:14:20)
    at Funnel.processFilters (E:newPojectses6-webistenode_modulesbroccoli-funnelindex.js:113:15)
    at Funnel.rebuild (E:newPojectses6-webistenode_modulesbroccoli-funnelindex.js:108:10)
    at E:newPojectses6-webistenode_modulesbroccolilibapi_compat.js:42:21
    at lib$rsvp$$internal$$tryCatch (E:newPojectses6-webistenode_modulesbroccolinode_modulesrsvpdistrsvp.js:489:
16)
    at lib$rsvp$$internal$$invokeCallback (E:newPojectses6-webistenode_modulesbroccolinode_modulesrsvpdistrsvp.j
s:501:17)
    at E:newPojectses6-webistenode_modulesbroccolinode_modulesrsvpdistrsvp.js:1095:13
    at lib$rsvp$asap$$flush (E:newPojectses6-webistenode_modulesbroccolinode_modulesrsvpdistrsvp.js:1290:9)
Build failed

似乎是路径错误。我试图修改RegExp如下,它的工作

babelPath = babelPath.replace(/\index.js$/, '');

相关内容

  • 没有找到相关文章