qq_35052700
波德莱尔2
采纳率63.6%
2018-04-13 09:31

输入gulp命令报错,node_modules下的node.js好像有问题

40
已采纳

Administrator@degaiermangte MINGW64 /c/users/Administrator/Desktop/mtt-web
$ gulp
[17:07:22] Requiring external module babel-core/register
[17:07:22] 鈩▒ remark v4.0.3
[17:07:22] 馃敡 Development Mode
C:\users\Administrator\Desktop\mtt-web\tasks\beautify.js:77
_gulp2.default.task('beautify', _gulp2.default.series('beautify:scripts', 'beautify:styles'));
^

TypeError: _gulp2.default.series is not a function
at Object. (C:/users/Administrator/Desktop/mtt-web/tasks/beautify.js:73:28)
at Module._compile (module.js:652:30)
at loader (C:\users\Administrator\Desktop\mtt-web\node_modules\babel-register\lib\node.js:144:5)
at Object.require.extensions.(anonymous function) as .js
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at requireDir (C:\users\Administrator\Desktop\mtt-web\node_modules\require-dir\index.js:123:33)
at Object. (C:/users/Administrator/Desktop/mtt-web/gulpfile.babel.js:13:1)
at Module._compile (module.js:652:30)
at loader (C:\users\Administrator\Desktop\mtt-web\node_modules\babel-register\lib\node.js:144:5)
at Object.require.extensions.(anonymous function) as .js
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

2条回答

  • xiaomao155 xiaomao155 3年前

    有时候因为网络问题,安装不成功,可以用cnpm 安装,先安装淘宝镜像

    点赞 评论 复制链接分享
  • js_admin 拼搏的小叔 3年前

    重新install 一下

    点赞 评论 复制链接分享

相关推荐