-
Notifications
You must be signed in to change notification settings - Fork 29
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
Use of "npm install" on the server side is considered a bad practice #14
Comments
I know this is old, but is this still the case? I get errors from |
Well, the difficulties are mostly human and a little bit technical:
Forcing the use of npm install on the server side is one way to ensure that
However, you can in principle copy over your node_modules folder and then So right now our recommendation is to make sure you have enough RAM for npm On Wed, Apr 20, 2016 at 12:34 PM, Corey Tegeler [email protected]
*THOMAS BOUTELL, *DEV & OPS |
However... nobody's stopping you from trying this in your project:
If you don't have any "npm link"ed modules, it ought to work, and I'd be (Modifying these files is something you're intended to do. The deployment/ On Wed, Apr 20, 2016 at 12:42 PM, Tom Boutell [email protected] wrote:
*THOMAS BOUTELL, *DEV & OPS |
Wonderful, this let me get passed the initial deployment very painfully. I had done each step manually to make sure it worked before editing the scripts, but it's great to be able to customize those! Thanks for the guide |
Glad to hear this alternative does work! We will keep considering the best On Wed, Apr 20, 2016 at 1:08 PM, Corey Tegeler [email protected]
*THOMAS BOUTELL, *DEV & OPS |
See:
https://github.com/isaacs/npm/issues/4304
I complained that npm publish does not have read-after-write consistency so I can't script doing a deploy after a publish of a public npm module and get reliable results.
The response was that I shouldn't be doing that anyway. Both for that reason and to avoid slamming npm's servers.
The proper practice would be to copy node_modules after all, as we did in the dawn days of stagecoach - then do a recursive "npm rebuild" on all the modules, to address binary incompatibility issues that caused us to use "npm install" remotely in the first place.
The text was updated successfully, but these errors were encountered: