weixin_39346187
金钩梨
2017-09-27 01:38

es6环境搭建中遇到了问题

  • es6

$ gulp --watch
[09:29:11] Requiring external module babel-register
C:\Users\jinxin\Desktop\es6\node_modules_babel-core@6.26.0@babel-core\lib\transformation\file\options\option-manager.js:328
throw e;
^

Error: Couldn't find preset "es2015" relative to directory "C:\Users\jinxin\Desktop\es6"
at C:\Users\jinxin\Desktop\es6\node_modules_babel-core@6.26.0@babel-core\lib\transformation\file\options\option-manager.js:293:19
at Array.map ()
at OptionManager.resolvePresets (C:\Users\jinxin\Desktop\es6\node_modules_babel-core@6.26.0@babel-core\lib\transformation\file\options\option-manager.js:275:20)
at OptionManager.mergePresets (C:\Users\jinxin\Desktop\es6\node_modules_babel-core@6.26.0@babel-core\lib\transformation\file\options\option-manager.js:264:10)
at OptionManager.mergeOptions (C:\Users\jinxin\Desktop\es6\node_modules_babel-core@6.26.0@babel-core\lib\transformation\file\options\option-manager.js:249:14)
at OptionManager.init (C:\Users\jinxin\Desktop\es6\node_modules_babel-core@6.26.0@babel-core\lib\transformation\file\options\option-manager.js:368:12)
at compile (C:\Users\jinxin\Desktop\es6\node_modules_babel-register@6.26.0@babel-register\lib\node.js:103:45)
at loader (C:\Users\jinxin\Desktop\es6\node_modules_babel-register@6.26.0@babel-register\lib\node.js:144:14)
at Object.require.extensions.(anonymous function) as .js
at Module.load (module.js:507:32)

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐

换一换