Yoman angular generator will not start distribution

When I set up the angular generator using yoman, I get this error after doing grunt serve

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) 
+6
source share
2 answers

As @SteveBirkner already mentioned, delete the node_modules directory and run the npm install command again. It should work.

+6
source

I had the same problem and at the end of the log I received this message:

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

The problem was the lack of memory in my virtual machine. One solution was to use the swap mentioned here .

+2
source

Source: https://habr.com/ru/post/971933/


All Articles