今天在做项目的时候不小心删了node包结果就一直报错,,,,初始化也么用。。。
npm ERR! Unexpected end of JSON input while parsing near '....0","extract-text-web'
解决方案:
1、
npm cache clean --force
2、
npm install --registry=https://registry.npm.taobao.org
这样问题就解决了。。。
今天在做项目的时候不小心删了node包结果就一直报错,,,,初始化也么用。。。
npm ERR! Unexpected end of JSON input while parsing near '....0","extract-text-web'
解决方案:
1、
npm cache clean --force
2、
npm install --registry=https://registry.npm.taobao.org
这样问题就解决了。。。
转载于:https://www.cnblogs.com/tiankafei/p/10733809.html