Gulp编译ES6找不到Babel模块

HasaKI
  • 19

命令行报错:

homeworkshare\Gulp>gulp start
module.js:457
    throw err;
    ^

Error: Cannot find module 'babel-core'
    at Function.Module._resolveFilename (module.js:455:15)
    at Function.Module._load (module.js:403:25)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (D:\homeworkshare\Gulp\node_modules\[email protected]\index.js:8:13)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)

代码测试地址请点这里

回复
阅读 4.5k
1 个回答

我想知道你 npm install 了吗

宣传栏