npm install without symlinks option not working

前端 未结 3 1949
情话喂你
情话喂你 2020-12-29 03:14

I setup a development environment with Windows 8 and Ubuntu as a virtual machine. For that I use VirtualBox.

I also manage to create a shared folder in VirtualBox.

3条回答
  •  自闭症患者
    2020-12-29 03:29

    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  | tail -1)
    

    Works for me in git-bash on Windows 10.

提交回复
热议问题