我正在使用西兰花和下面显示的插件:
但在运行broccoli build dist
后,我收到以下错误:
Error: ENOENT, no such file or directory 'E:\newPojects\es6-webiste\node_modules\broccoli-babel-transpiler\index.js\node
_modules\babel-core'
at Error (native)
at Object.fs.readdirSync (fs.js:765:18)
at walkSync (E:\newPojects\es6-webiste\node_modules\broccoli-funnel\node_modules\walk-sync\index.js:14:20)
at Funnel.processFilters (E:\newPojects\es6-webiste\node_modules\broccoli-funnel\index.js:113:15)
at Funnel.rebuild (E:\newPojects\es6-webiste\node_modules\broccoli-funnel\index.js:108:10)
at E:\newPojects\es6-webiste\node_modules\broccoli\lib\api_compat.js:42:21
at lib$rsvp$$internal$$tryCatch (E:\newPojects\es6-webiste\node_modules\broccoli\node_modules\rsvp\dist\rsvp.js:489:
16)
at lib$rsvp$$internal$$invokeCallback (E:\newPojects\es6-webiste\node_modules\broccoli\node_modules\rsvp\dist\rsvp.j
s:501:17)
at E:\newPojects\es6-webiste\node_modules\broccoli\node_modules\rsvp\dist\rsvp.js:1095:13
at lib$rsvp$asap$$flush (E:\newPojects\es6-webiste\node_modules\broccoli\node_modules\rsvp\dist\rsvp.js:1290:9)
Build failed
答案 0 :(得分:0)
这似乎是路径错误。I tried to modify the RegExp as follow,it works
babelPath = babelPath.replace(/\\index.js$/, '');