Blog of Raivo Laanemets

Stories about web development, freelancing and personal computers.

npm 3

npm is a package manager used by many JavaScript projects. The version 3 is beta-released and mostly contains fixes for the Windows platform and the shrinkwrap functionality.

On Windows it caused pain from too deeply nested node_modules directories. The underlying file system (NTFS) supports long paths and npm has no issues with them but Windows own tools and many 3rd-party tools fail on paths greater than 255 characters. As a result, packages will now be installed on the top-level node_modules directory. When there is a dependency version conflict then nesting is still used but paths are likely still shorter than before.

The shrinkwrap command got improved a lot. This should also eliminate the package.json/npm-shrinkwrap.json difference issue. I will definitely try again to use shrinkwrap on my Node applications.

The full changelog can be found from here.


No comments have been added so far.

Email is not displayed anywhere.
URLs (max 3) starting with http:// or https:// can be used. Use @Name to mention someone.