我目前正在尝试在笔记本电脑上设置MEAN服务器
似乎马上就遇到了麻烦..我正按照mean.io
的说明进行操作当我到达运行Grunt的步骤时,我收到以下错误:
Running "hook" task
>> Starting hooked tasks.
Running "clean:0" (clean) task
>> 0 paths cleaned.
Running "jshint:all" (jshint) task
>> 42 files lint free.
Running "csslint:src" (csslint) task
>> 5 files lint free.
Running "concurrent:tasks" (concurrent) task
Running "nodemon:dev" (nodemon) task
Running "watch" task
Waiting...
[nodemon] v1.2.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node --debug server.js`
debugger listening on port 5858
module.js:340
throw err;
^
Error: Cannot find module 'meanio'
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> (/home/noel/noelissa/server.js:12:12)
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)
at Function.Module.runMain (module.js:497:10)
[nodemon] app crashed - waiting for file changes before starting...
我尝试在网上寻找答案,但似乎找不到任何有用的东西..
另外,我安装了Node.js,MongoDB和Git
答案 0 :(得分:0)
npm install meanio
可能没有正确安装,安装缺少的依赖项或再次运行
npm install