无法从redux-saga-beginner-tutorial找到模块“ babelify”

时间:2018-09-20 15:14:11

标签: javascript compilation

  

redux-saga-beginner-tutorial@0.0.0开始C:\ Users \ brian \ react \ redux-saga-beginner-tutorial   budo main.js:build.js --dir ./ --verbose --live--t babelify

events.js:167       投掷者//未处理的“错误”事件       ^

错误:无法从'C:\ Users \ brian \ react \ redux-saga-beginner-tutorial'中找到模块'babelify'     在C:\ Users \ brian \ AppData \ Roaming \ npm \ node_modules \ budo \ node_modules \ resolve \ lib \ async.js:51:31     在processDirs(C:\ Users \ brian \ AppData \ Roaming \ npm \ node_modules \ budo \ node_modules \ resolve \ lib \ async.js:185:39)     在ondir(C:\ Users \ brian \ AppData \ Roaming \ npm \ node_modules \ budo \ node_modules \ resolve \ lib \ async.js:200:13)     加载时(C:\ Users \ brian \ AppData \ Roaming \ npm \ node_modules \ budo \ node_modules \ resolve \ lib \ async.js:83:43)     在onex(C:\ Users \ brian \ AppData \ Roaming \ npm \ node_modules \ budo \ node_modules \ resolve \ lib \ async.js:108:17)     在C:\ Users \ brian \ AppData \ Roaming \ npm \ node_modules \ budo \ node_modules \ resolve \ lib \ async.js:12:69     在FSReqWrap.oncomplete(fs.js:154:21) 在以下位置发出了“错误”事件:     在C:\ Users \ brian \ AppData \ Roaming \ npm \ node_modules \ budo \ node_modules \ browserify \ index.js:368:34     在C:\ Users \ brian \ AppData \ Roaming \ npm \ node_modules \ budo \ node_modules \ resolve \ lib \ async.js:53:13     在processDirs(C:\ Users \ brian \ AppData \ Roaming \ npm \ node_modules \ budo \ node_modules \ resolve \ lib \ async.js:185:39)     [...与原始堆栈跟踪匹配的行...]     在FSReqWrap.oncomplete(fs.js:154:21)

2 个答案:

答案 0 :(得分:0)

您可能需要然后安装它:

npm install --save-dev babelify @babel/core

答案 1 :(得分:0)

问题是我的环境变量搞砸了,它正在执行发行版本而不是开发版本