猫鼬没有发现Gcloud错误

时间:2018-04-15 02:06:55

标签: node-modules gcloud

当我尝试将我的节点应用程序部署到谷歌云时,我一直收到此错误,我已经到处寻找解决方案。从我到目前为止所看到的情况来看,我认为问题出在我的node_modules文件夹中,虽然我从我的工作目录中删除并尝试再次部署,仍然没有工作

 node server.js

Server is running
module.js:549
    throw err;
    ^

Error: Cannot find module 'Mongoose'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/app/routes/feeds/index.js:3:18)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/app/server.js:161:14)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! b-net@1.0.0 start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the b-net@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-04-15T01_55_30_253Z-debug.log

0 个答案:

没有答案