Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
472 views
in Technique[技术] by (71.8m points)

安装cnpm一直出错

clipboard.png
之前我机器上装的有cnpm,然后有一段时间没用了,这次cnpm -v里面竟然无法执行命令,我还特意把以前的node删了重新下的,求大神帮忙看看


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

用npm卸载了cnpm后,再重新装一遍cnpm。不过我感觉最好的方法还是每次在npm命令后面加一句 --registry=https://registry.npm.taobao.org ,虽然麻烦点,但是很稳定,没有那么多事。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...