schteppe / p2.js

JavaScript 2D physics library
Other
2.64k stars 330 forks source link

npm install error #182

Closed vecheslav closed 9 years ago

vecheslav commented 9 years ago

Do not installing in nodejs. npm install --save --no-bin-links p2 Error: https://gist.github.com/instantia/5a9f6864cbb601dc798f

schteppe commented 9 years ago

How can this be fixed?

vecheslav commented 9 years ago

Think I found the solution. This vagrant + windows. Max path limit 256 symbols.

vecheslav commented 9 years ago

So, as vagrant not fixed a bug UNC path Windows. My solution was: shell script

config.vm.provision :shell, :path => "scripts/mounts.sh", run: "always"
echo "Mounting node_modules to home folder"
mkdir -p ~/www/dev/roamforge/node_modules && mkdir -p /vagrant/www/dev/roamforge/node_modules && sudo mount -o bind ~/www/dev/roamforge/node_modules /vagrant/www/dev/roamforge/node_modules