簡體   English   中英

yeoman角度發電機不會開始咕嚕咕嚕的服務

[英]yeoman angular generator wont start on 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)

正如@SteveBirkner已經提到的那樣,刪除node_modules目錄並再次運行npm install命令。 它應該工作。

我遇到了同樣的問題,在日志的最后我收到了這樣的消息:

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

問題是我的VM中缺少足夠的內存。 一個解決方案是使用交換在這里提到。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM