NPM安装错误p2,其他模块都正常



不要安装npm模块p2 https://www.npmjs.com/package/p2

npm install --save --no-bin-links p2

尝试

npm install --save --no-bin-links git+ssh://git@github.com:schteppe/p2.js.git

结果是一样的。

npm-debug.log https://gist.github.com/instantia/e0c323903ee4edd06274

有什么问题吗?

所以,作为流浪汉没有修复UNC路径Windows的bug。我的解决方案是:流浪汉shell脚本

config.vm.provision :shell, :path => "scripts/mounts.sh", run: "always"

mounts.sh

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

最新更新