【发布时间】:2014-06-30 14:12:01
【问题描述】:
我使用以下命令安装平均堆栈并创建应用程序:
> sudo npm install -g meanio@latest // Get the mean cmdline
> mean init myApp // create your first app
> cd myApp && npm install // Install dependencies
> grunt // Launch mean
但是当我到达最后的 grunt 命令时,我得到了错误:
module.js:333
throw err;
^ Error: Cannot find module 'coffee-script'
at Function.Module._resolveFilename (module.js:331:15)
at Function.Module._load (module.js:273:25)
at Module.require (module.js:357:17)
at require (module.js:373:17)
at Object.<anonymous> (/home/eddie/ResFour/node_modules/grunt/lib/grunt.js:16:1)
我在 stackoverflow 上尝试了各种解决方案,但无济于事:
NodeJS - setting up mean.io cannot find module errors
Cannot find module 'coffee-script'
我还清除了 npm 缓存并重新安装了几次。
【问题讨论】:
-
运行
which coffee时会发生什么?你在喝什么版本的咖啡? -
在 package.json 中,coffee-script 的版本是怎么说的?
标签: javascript node.js coffeescript mean-stack