Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Npm.depends on deployment #1

Open
marxo opened this issue Apr 27, 2016 · 1 comment
Open

Issue with Npm.depends on deployment #1

marxo opened this issue Apr 27, 2016 · 1 comment

Comments

@marxo
Copy link

marxo commented Apr 27, 2016

Hi. I have a codebase recently upgraded to 1.3. However, all deployment fails with a message in the lines of:

Error: Can't find npm module 'body-parser'. Did you forget to call 'Npm.depends' in package.js within the 'iron_router' package?

I rhc ssh to the machine, and try to manually install the required npm module which goes well. However, upon next start, I get the same error but with a different module and package. That goes on and on, and I suspect either package compatibility or the build process itself from Meteor to Node app.

Another thing worth mentioning is that if I create a new 1.3 app, build and deploy, it works. I didn't add packages to it, and the application itself doesn't have legacy code.

This might very well be unrelated to the Openshift deployment as people have had it in Modulus, Mup, DigitalOcean instances and more, but if there's someone who knows how to fix it I'd appreciate it.

@marxo
Copy link
Author

marxo commented Apr 27, 2016

Apparently, the solution is to do: git config --system core.longpaths true if you're running Windows, since not all node modules will get committed to Git, because of the 260 character limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant