使用npm下载依赖报错

错误如下:“Unexpected end of JSON input while parsing near···”

解决方法

1.清理缓存: npm cache clean --force

2.执行命令:npm install  --registry=https://registry.npm.taobao.org --loglevel=silly

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章