npm install without symlinks option not working

The NPM docs about parameter “–no-bin-links” say:

will prevent npm from creating symlinks for any binaries the package
might contain.

Which will just cause NPM to not create links in the node_modules/.bin folder. I also searched for a way to prevent NPM from creating symlinks when using npm install ../myPackage, but can’t find any solution…

Update: The npm support team said this will reproduce the old behaviour (no symbolic links):

npm install $(npm pack <folder> | tail -1)

Works for me in git-bash on Windows 10.

Leave a Comment