WebStorm 小程序报错

2512关注7288浏览

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


展开全部
收起
0回答
提交回答
  • 至过去的我

    2044人对此回答表示赞同

    我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>
    发布于
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
咨询热线

13312967497

扫码添加业务即可随时咨询 还可领取小程序推广攻略

业务咨询: 13312967497
扫码咨询

扫码咨询套餐

回到顶部