Deploy fails - Error: Can't find npm module (Meteor Galaxy)


#1

I am really desperate right now, because I tried to deploy to Meteor Galaxy (the whole day) and it didn´t work at all, although everything seems to be working on localhost.

At first, my app was uploaded, but than failed to start. At least, the containers start right now, but than my App is crashing. I think it is a systematic fail within my app structure. Perhaps some npm dependencies are missing in package.json or I need to debug some npm installations?

I don´t think that I have understood exactly how npm is working within meteor, which dependencies I need to have or what I have to import/require to use npm packages correctly. The meteor docs did not help me.

Here are my error logs:

wy2vj
2017-09-21 20:09:14+02:00Note: you are using a pure-JavaScript implementation of bcrypt.
wy2vj
2017-09-21 20:09:14+02:00While this implementation will work correctly, it is known to be
wy2vj
2017-09-21 20:09:14+02:00approximately three times slower than the native implementation.
wy2vj
2017-09-21 20:09:14+02:00In order to use the native implementation instead, run
wy2vj
2017-09-21 20:09:14+02:00
wy2vj
2017-09-21 20:09:14+02:00 meteor npm install --save bcrypt
wy2vj
2017-09-21 20:09:14+02:00
wy2vj
2017-09-21 20:09:14+02:00in the root directory of your application.
wy2vj
2017-09-21 20:09:22+02:00/app/bundle/programs/server/node_modules/fibers/future.js:280
wy2vj
2017-09-21 20:09:22+02:00 throw(ex);
wy2vj
2017-09-21 20:09:22+02:00 ^
wy2vj
2017-09-21 20:09:22+02:00
wy2vj
2017-09-21 20:09:22+02:00Error: Can’t find npm module ‘meteor/browser-policy-common’. Did you forget to call ‘Npm.depends’ in package.js within the ‘modules-runtime’ package?
wy2vj
2017-09-21 20:09:22+02:00 at Object.require (/app/bundle/programs/server/boot.js:230:17)
wy2vj
2017-09-21 20:09:22+02:00 at makeInstallerOptions.fallback (packages/modules-runtime.js:641:18)
wy2vj
2017-09-21 20:09:22+02:00 at require (packages/modules-runtime.js:234:16)
wy2vj
2017-09-21 20:09:22+02:00 at meteorInstall.imports.startup.server.browser-policy.js (imports/startup/server/browser-policy.js:1:32)
wy2vj
2017-09-21 20:09:22+02:00 at fileEvaluate (packages/modules-runtime.js:333:9)
wy2vj
2017-09-21 20:09:22+02:00 at require (packages/modules-runtime.js:228:16)
wy2vj
2017-09-21 20:09:22+02:00 at meteorInstall.imports.startup.server.index.js (imports/startup/server/index.js:1:66)
wy2vj
2017-09-21 20:09:22+02:00 at fileEvaluate (packages/modules-runtime.js:333:9)
wy2vj
2017-09-21 20:09:22+02:00 at require (packages/modules-runtime.js:228:16)
wy2vj
2017-09-21 20:09:22+02:00 at meteorInstall.server.main.js (server/main.js:1:14)
wy2vj
2017-09-21 20:09:22+02:00 at fileEvaluate (packages/modules-runtime.js:333:9)
wy2vj
2017-09-21 20:09:22+02:00 at require (packages/modules-runtime.js:228:16)
wy2vj
2017-09-21 20:09:22+02:00 at /app/bundle/programs/server/app/app.js:3668:1
wy2vj
2017-09-21 20:09:22+02:00 at /app/bundle/programs/server/boot.js:338:34
wy2vj
2017-09-21 20:09:22+02:00 at Array.forEach (native)
wy2vj
2017-09-21 20:09:22+02:00 at Function..each..forEach (/app/bundle/programs/server/node_modules/underscore/underscore.js:79:11)

It does not matter which module is missing, it seems to be that Galaxy can´t find any of the used npm modules. Before that try, I had the same error with another npm module. Than I just deleted the Npm.require of that module in my code. Now, I have the same error, just with another module.

I think I missed something during the local usage of npm. Does anyone know how to help me out? I´m a bit hopeless right now, because I worked a really long time now on that project as a complete beginner, everything worked fine locally and now I can´t bring it online…I am using windows and would appreciate anything that helps!