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

Categories

用cnpm能正常生成module的文件,但是不生成package.lock.json文件
,程序也能正常运行,但是用npm install 就会有报错,可能是我的网络问题,不知道这个怎么解决?
image.png


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

1 Answer

原因是使用了 node-sass, 解决办法:

npm install -g mirror-config-china --registry=http://registry.npm.taobao.org

然后再

npm install

而不是使用 cnpm。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...