Version: 4.x
Limitations
npm-shrinkwrap.json
andpackage-lock.json
are ignored. Unlike pnpm, npm can install the same[email protected]
multiple times and with different sets of dependencies. npm's shrinkwrap file is designed to reflect thenode_modules
layout created by npm. pnpm cannot create a similar layout, so it cannot respect npm's lockfile format. However, see pnpm import.- You can't publish npm modules with
bundleDependencies
managed by pnpm. - Binstubs (files in
node_modules/.bin
) are always shell files not symlinks to JS files. The shell files are created to help pluggable CLI apps in finding their plugins in the unusualnode_modules
structure. This is very rarely an issue and if you expect the file to be a js file, just reference the original file instead, as described in #736. - Node.js doesn't work with the --preserve-symlinks flag when executed in a project that uses pnpm.
Got an idea for workarounds for these issues? Share them.