解析服务器部署到Heroku - 错误:找不到模块' ../ Adapters / PubSub / EventEmitterPubSub'

时间:2016-12-27 19:59:47

标签: node.js heroku parse-platform npm

我正在将我的Parse应用程序迁移到Parse Server并让它在本地运行。我现在准备好部署到Heroku但是当Heroku调用" npm start"时出现错误。 Heroku已经运行" npm install"在部署过程中。

我收到以下错误:

parse-server-example@1.4.0 start /app

node index.js

module.js:471
    throw err;
    ^

Error: Cannot find module '../Adapters/PubSub/EventEmitterPubSub'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object. (/app/node_modules/parse-server/lib/LiveQuery/ParsePubSub.js:10:27)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)

npm ERR! Linux 3.13.0-105-generic
npm ERR! argv "/app/.heroku/node/bin/node" "/app/.heroku/node/bin/npm" "start"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! parse-server-example@1.4.0 start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the parse-server-example@1.4.0 start script 'node index.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the parse-server-example package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node index.js

非常感谢任何帮助!

0 个答案:

没有答案