今天在做项目的时候不小心删了node包结果就一直报错,,,,初始化也么用。。。
npm ERR! Unexpected end of JSON input while parsing near '..."klaw":"^1.0.0","pa
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\lenovo\AppData\Roaming\npm-cache\_logs\2018-07-05T06_29_06
解决方案:
1、
npm cache clean --force
2、
npm install --registry=https://registry.npm.taobao.org
这样问题就解决了。。。