2 ms·
No need to muck about with your package.JSON, actually fix the problem by just checking in your node_modules folder. Then continue working like you always have
by Klathmon 11y ago
No need to muck about with your package.JSON, actually fix the problem by just checking in your node_modules folder.
Then continue working like you always have.
There are some changes that you'll need of you are using native modules, but they are simple and easy to do.
- AgentME 11y agoYou can use shrinkpack[1] to solve the issues with native modules. It allows you to check in the archives that npm downloads instead of the installed node_modules folder. [1]: https://github.com/JamieMason/shrinkpack https://github.com/JamieMason/shrinkpack
- Klathmon 11y agoThat's a great solution, but i was just talking about installing the source into node_modules and running `npm rebuild` instead of `npm install` when you install your app.