npm Blog (Archive)

The npm blog has been discontinued.

Updates from the npm team are now published on the GitHub Blog and the GitHub Changelog.

v5.7.1

This release reverts a patch that could cause some ownership changes on system files when running from some directories when also using `sudo`. 😲

Thankfully, it only affected users running `npm@next`, which is part of our staggered release system, which we use to prevent issues like this from going out into the wider world before we can catch them. Users on `latest` would have never seen this!

The original patch was added to increase consistency and reliability of methods npm uses to avoid writing files as `root` in places it shouldn’t, but the change was applied in places that should have used regular mkdirp`. This release reverts that patch.

* [`74e149da6`](https://github.com/npm/npm/commit/74e149da6efe6ed89477faa81fef08eee7999ad0) [`#19883`](https://github.com/npm/npm/issue/19883) Revert “*: Switch from mkdirp to correctMkdir to preserve perms and owners” This reverts commit [`94227e15`](https://github.com/npm/npm/commit/94227e15eeced836b3d7b3d2b5e5cc41d4959cff). ([@zkat](https://github.com/zkat))