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

Running multiple different npm install operations doesn't work #6502

Closed
Turbo87 opened this issue Dec 1, 2016 · 0 comments
Closed

Running multiple different npm install operations doesn't work #6502

Turbo87 opened this issue Dec 1, 2016 · 0 comments
Labels

Comments

@Turbo87
Copy link
Member

Turbo87 commented Dec 1, 2016

As mentioned in a1a5f6f it is currently unreliable to run multiple NPM operations in the same process, even when run in sequence. The reason for that is NPM setting a loaded flag and "loading" the NPM code a second time with different options (e.g. with and without --save-dev) will not activate the new options.

NPM has also stated in the past (reference missing unfortunately) that using their code programmatically is not supported and people should use exec and run the CLI tool instead.

#6461 has already started work in a similar direction, but might take longer to get merged since it's changing a few other things as well.

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

No branches or pull requests

1 participant