我在使用grunt
运行meanio app时遇到了这样的错误/home/me/project/myapp/node_modules/meanio/node_modules/q/q.js:126
throw e;
^
Error: Cannot find module 'connect-multiparty'
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 Module.module.exports (/home/me/project/myapp/packages/contrib/upload/server/routes/meanUpload.js:6:21)
at /home/me/project/myapp/node_modules/meanio/lib/mean.js:286:20
at /home/me/project/myapp/node_modules/meanio/lib/util.js:21:7
at Array.forEach (native)
at walk (/home/me/project/myapp/node_modules/meanio/lib/util.js:16:25)
at /home/me/project/myapp/node_modules/meanio/lib/util.js:23:7
答案 0 :(得分:0)
错误可能是因为packages / contrib / upload中的上传包。在这种情况下,只需使用mean install命令重新安装
mean install upload
答案 1 :(得分:0)
通过错误打开上述包的package.json文件,并在依赖项中添加缺少的模块:
"dependencies": {
"connect-multiparty": "latest",
....
},
然后,在包的文件夹
中运行npm install