0

我正在运行此命令并一个接一个地收到连续错误。模块不存在。我安装了那个模块,它显示下一个模块不存在。例如:一个模块错误--->>

错误:在 Module.require (module.js:364:17) 的 Function.Module._load (module.js:280:25) 的 Function.Module._resolveFilename (module.js:338:15) 找不到模块“shelljs” ) 在对象的 require (module.js:380:17) 处。(/home/bele/.nvm/v0.10.33/lib/node_modules/generator->angular/node_modules/yeoman-generator/lib/actions/user.js:2:13) 在 Module._compile (module.js:456 :26) 在 Object.Module._extensions..js (module.js:474:10) 在 Module.load (module.js:356:32) 在 Function.Module._load (module.js:312:12) 在Module.require (module.js:364:17)

4

2 回答 2

0

可能是你安装的旧版本

npm cache clean && npm upgrade -g yo

于 2015-06-19T09:38:16.060 回答
0

为了节省开支,我还将更新所有相关工具: npm update -g npm yo bower grunt.

有时 bower 无法在第一次下载所有依赖项,需要bower install再次运行。

于 2015-06-19T09:52:04.623 回答