npm i 安装依赖包提示字符串解析异常(Unexpected end of JSON input)
请确保网络较好,个人因为网络原因折腾了好久,资源库可以设置为https://registry.npm.taobao.org/设置和查看命令如下:
npm config set registry="https://registry.npm.taobao.org/"
npm config list执行:npm cache clean --force 自此执行安装命令:npm i
npm config set registry="https://registry.npm.taobao.org/"
npm config list执行:npm cache clean --force 自此执行安装命令:npm i
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。