2014-09-30 53 views
0

我得到了錯誤像這樣同時使用咕嚕meanio崩潰與錯誤:無法找到模塊「連接多黨」

/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

錯誤可能是因爲上傳包中包/的contrib /上傳的運行meanio應用。在這種情況下,只需重新安裝使用指由錯誤安裝命令

mean install upload 
0

打開提到包的的package.json文件,並在依賴項添加缺少的模塊:

"dependencies": { 
    "connect-multiparty": "latest", 
    .... 
}, 

然後,運行npm install在包裹的文件夾中