金钩梨
2017-09-27 01:38es6环境搭建中遇到了问题
$ 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条回答
为你推荐
- 如何在保留引号的同时将数组连接到字符串中?
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 1个回答
- 如何在URL中传递POST参数
- http-post
- post
- httprequest
- php
- html
- 1个回答
- 请问这个es6箭头函数里的res和err是什么意思?
- javascript
- 1个回答
- 想成长的前端小白求助!在html文件中引用使用了“ES6的module”的js文件报错
- vue.js
- javascript
- ecmascript
- chrome
- 4个回答
- 在 JavaScript 对象数组中按 id 查找对象
- javascript
- object
- arrays
- jquery
- 0个回答