yeomanangular发电机不会开始咕噜发球

当我与yeoman设置angular度发生器时,我做了咕噜服务后得到这个错误

module.js:340 throw err; ^ Error: Cannot find module './lexer' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/var/www/angMaps/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/coffee-script.js:10:10) at Object.<anonymous> (/var/www/angMaps/node_modules/grunt/node_modules/coffee-script/lib/coffee-script/coffee-script.js:167:4) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) 

正如@SteveBirkner已经提到的,删除node_modules目录并再次运行npm install命令。 它应该工作。

我有同样的问题,在日志的最后,我收到了这样的信息:

 ... http 200 http://registry.npmjs.org/-/all Killed 

问题是我的虚拟机内存不足。 一个解决scheme是使用交换在这里提到。