You need to run npm with the option -βno-bin-link
to tell npm that your file system does not support links
If you want to make --no-bin-link
npm for each command, you can add an alias to your .bashrc
file in your home directory using this command:
echo "alias npm='npm --no-bin-links'" >> /home/vagrant/.bashrc
Another option is to configure your configuration to allow symbolic links on Windows hosts in your Vagrantfile
config.vm.provider "virtualbox" do |v|
v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/vagrant", "1"]
end
. https://github.com/npm/npm/issues/7308