yo angular projectname Command



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

错误:找不到模块"shelljs" 在Function.Module._resolveFilename(模块.js:338:15) 在Function.Module._load(模块.js:280:25) at Module.require (module.js:364:17) 在需要(模块.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(模块.js:456:26) 在Object.Module._extensions..JS(模块.js:474:10) at Module.load (module.js:356:32) 在Function.Module._load(模块.js:312:12) at Module.require (module.js:364:17)

可能是已安装的旧版本

npm cache clean && npm upgrade -g yo

为了保存,我还会更新所有相关工具: npm update -g npm yo bower grunt .

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

最新更新