How to use npm communication with Heroku?

I am using the npm link as described here

http://npmjs.org/doc/link.html

Locally, everything works fine. When I deploy to Heroku, I get an error

Error: Cannot find module '...'

How can I get this working with Heroku?

+3
source share
1 answer

I would like it to be an elegant solution (it would make my life a lot easier). Your custom package symbolically linked to node_modulesfrom npm link, but git does not correspond to the symbolic links now . So when you are git pushup to Heroku, there is no way to make your own packages for promotion.

, , Heroku node_modules, , , . npm install --production, . , , , Git . !

EDIT: , Heroku, .

, , , . .

+3

All Articles