The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
A new pre-release of the npm cli has been tagged! You can install it with npm i -g npm@next or try it out with npx npm@next …
Pre-releases are promoted to latest after about a week if no serious issues stop them. Try it out, tell us what you think!
This release includes EXCITING NEW FEATURES, such as time traveling installs and dependency aliases!
2ba3a0f67#90 Time traveling installs using the
b7b54f2d1#3 Add support for package aliases. This allows packages to be installed under a different directory than the package name listed in
package.json, and adds a new dependency type to allow this to be done for registry dependencies. (@zkat)
684bccf06#146 Always save
b8b8afd40#139 Make empty-string run-scripts run successfully as a no-op. (@vlasy)
8047b19b1npm.community#3784 Match git semver ranges when flattening the tree. (@larsgw)
e135c2bb3npm.community#1725 Re-enable updating local packages. (@larsgw)
cf09fbaed#153 Set modified to undefined in
timeis not available. This fixes a bug where
npm viewwould crash on certain third-party registries. (@simonua)
774fc26ee#154 Print out tar version in
install.shonly when the flag is supported not all the tar implementations support --version flag. This allows the install script to work in OpenBSD, for example. (@agudulin)
863baff11#158 Fix typo in error message for
npm stars. (@phihag)
a805a95adnpm.community#4227 Strip version info from pkg on E404. This improves the error messaging format. (@larsgw)
npm addas alias to npm install in docs. (@ahasall)
489c2211c#162 Fix link to RFC #10 in the changelog. (@mansona)
433020ead#135 Describe exit codes in npm-audit docs. (@emilis-tm)
firstname.lastname@example.org: Adds support for package aliases (@zkat)
email@example.com: Adds opts.before support (@zkat)
2b78288d4add core to default inclusion tests in pack (@zkat)
firstname.lastname@example.org: Fixes bug where
core/directories were being suddenly excluded. (@zkat)
Nice, didn’t realize aliases would be here already!
exciting to see aliases!
--before flag is super awesome!
In the past I already wished for this to be included in other package managers (like apt) because it just makes sense to have it!