跳到主要内容
CNode

Windows下的vagrant虚拟机运行出错,cnpm install --no-bin-links也不行

问答
Ttanteng发布于 10 年前最后回复 9 年前
352330

Windows下的vagrant虚拟机运行出错,cnpm install --no-bin-links也不行,怎么破!!!!因为npm太慢,用的cnpm,淘宝npm镜像。

npm倒是没有报这个错误,但是速度太慢了。

vagrant@homestead:/usr/share/nginx/html/tanteng.me$ sudo cnpm install Error: EPROTO: protocol error, symlink '../.3.9.1@gulp/bin/gulp.js' -> '/usr/share/nginx/html/tanteng.me/node_modules/.bin/gulp' Error: EPROTO: protocol error, symlink '../.3.9.1@gulp/bin/gulp.js' -> '/usr/share/nginx/html/tanteng.me/node_modules/.bin/gulp' at Error (native) npminstall version: 2.0.2 npminstall args: /usr/local/bin/node /usr/local/lib/node_modules/cnpm/node_modules/.bin/npminstall --china --userconfig=/home/vagrant/.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org

查看回复

回复 (3)

I
ipengyo#39 年前

找到解决办法了。

$ cnpm i --by=npm --no-bin-links

image.png

I
ipengyo#29 年前

image.png

同遇到。。。

B
broven#110 年前

windows的折翼天使。。

来自酷炫的 CNodeMD

参与回复

登录后即可参与回复。登录