當我設置了自耕農角發生器我得到這個錯誤做咕嚕後服務自耕農角發生器不會對咕嚕開始擔任
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)
是「./lexer」正確的路徑嗎?你可以發佈module.js或你的應用/服務器文件的代碼嗎? –
@Rockyy我只好按照這個http://stackoverflow.com/questions/13011290/cannot-find-module-coffee-script/19023184#19023184 只是刪除node_modules文件夾和npm安裝在該目錄中解決了問題。 –