2512关注7431浏览
WebStorm 的babel 模块错误如下:请教大神该如何解决
cmd.exe /D /C call D:/WX_XYX/node/node_global/babel.cmd game.js --out-dir dist --source-maps --presets env
Error: Couldn't find preset "env" relative to directory "."
at D:\WX_XYX
ode
ode_global
ode_modules\babel-cli
ode_modules\_babel-core@6.26.3@babel-core\libransformation\file\options\option-manager.js:293:19
at Array.map (<anonymous>)
at OptionManager.resolvePresets (D:\WX_XYX
ode
ode_global
ode_modules\babel-cli
ode_modules\_babel-core@6.26.3@babel-core\libransformation\file\options\option-manager.js:275:20)
at OptionManager.mergePresets (D:\WX_XYX
ode
ode_global
ode_modules\babel-cli
ode_modules\_babel-core@6.26.3@babel-core\libransformation\file\options\option-manager.js:264:10)
at OptionManager.mergeOptions (D:\WX_XYX
ode
ode_global
ode_modules\babel-cli
ode_modules\_babel-core@6.26.3@babel-core\libransformation\file\options\option-manager.js:249:14)
at OptionManager.init (D:\WX_XYX
ode
ode_global
ode_modules\babel-cli
ode_modules\_babel-core@6.26.3@babel-core\libransformation\file\options\option-manager.js:368:12)
at File.initOptions (D:\WX_XYX
ode
ode_global
ode_modules\babel-cli
ode_modules\_babel-core@6.26.3@babel-core\libransformation\file\index.js:212:65)
at new File (D:\WX_XYX
ode
ode_global
ode_modules\babel-cli
ode_modules\_babel-core@6.26.3@babel-core\libransformation\file\index.js:135:24)
at Pipeline.transform (D:\WX_XYX
ode
ode_global
ode_modules\babel-cli
ode_modules\_babel-core@6.26.3@babel-core\libransformation\pipeline.js:46:16)
at transform (D:\WX_XYX
ode
ode_global
ode_modules\babel-cli\lib\babel\util.js:50:22)
Process finished with exit code 1
-
至过去的我
2044人对此回答表示赞同
我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>