老师我的babel安装完跟视频里的不一样呀,想不到那个可执行文件

来源:1-6 【拓展内容】nodejs&babel安装与配置(windows&mac&linux)-2

千与千寻1234

2018-03-12


就是这样

写回答

2回答

千与千寻1234

提问者

2018-03-12

cmd.exe /D /C call E:/node.js/node_modules/.bin/babel.cmd game.js --out-dir dist --source-maps --presets env
Error: Couldn't find preset "env" relative to directory "."
    at E:\node.js\node_modules\babel-core\lib\transformation\file\options\option-manager.js:293:19
    at Array.map (<anonymous>)
    at OptionManager.resolvePresets (E:\node.js\node_modules\babel-core\lib\transformation\file\options\option-manager.js:275:20)
    at OptionManager.mergePresets (E:\node.js\node_modules\babel-core\lib\transformation\file\options\option-manager.js:264:10)
    at OptionManager.mergeOptions (E:\node.js\node_modules\babel-core\lib\transformation\file\options\option-manager.js:249:14)
    at OptionManager.init (E:\node.js\node_modules\babel-core\lib\transformation\file\options\option-manager.js:368:12)
    at File.initOptions (E:\node.js\node_modules\babel-core\lib\transformation\file\index.js:212:65)
    at new File (E:\node.js\node_modules\babel-core\lib\transformation\file\index.js:135:24)
    at Pipeline.transform (E:\node.js\node_modules\babel-core\lib\transformation\pipeline.js:46:16)
    at transform (E:\node.js\node_modules\babel-cli\lib\babel\util.js:50:22)

Process finished with exit code 1
    
    选babel.cmd文件的路径后报这个错误


0
0

千与千寻1234

提问者

2018-03-12

没有那个可执行文件

0
0

微信小游戏入门与实战,一天之内搞定微信小游戏开发

官方同步,第一时间掌握整套微信小游戏开发核心技术

3515 学习 · 664 问题

查看课程