Changes to npm installation methods for npm@5 / Meteor 1.6. #9021
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR submits two changes for the
release-1.6
branch (Meteor 1.6) which usesnpm@5
. Without this fix, on Windows 10 Insider Preview, somewhat cryptic errors were encountered when trying tometeor npm install
, such as:This appears to be fixed if we no longer set the
NPM_CONFIG_CACHE
variable to our own cache directory. This should be fine given thatnpm@5
has much more robust, self-healing, concurrency-toutingcacache
implementation. This should help reduce the amount of disk space by allowing Meteor to use your global npm cache (e.g.~/.npm
,%APPDATA%\npm
) instead of its own within the dev bundle.Additionally, as there are now some more official recommendations on how to launch
.cmd
and.bat
(i.e. Windows) scripts in the docs, this also changes the way we spawnnpm install
internally (such as when we build npms for packages, or when we install the default skeleton set of npms withmeteor create <app>
to launch thenpm.cmd
usingcmd.exe
as prescribed. Without this change,meteor create <app>
was not working for me with1.6-beta.20
.