记录:npm install 报错问题解决

npm install 安装依赖包时报错

     Unexpected end of JSON input while parsing near '....0.0","chalk":"^2.3.0' 
     npm ERR! A complete log of this run can be found in: 
     npm ERR!     C:\Users\GeoinTech\AppData\Roaming\npm-cache\_logs\2019-02-20T03_41_07_258Z-debug.log

解决:

npm cache clean --force
npm install

或者:安装淘宝镜像下载依赖

npm install --registry=https://registry.npm.taobao.org --loglevel=silly
cnpm install

你可能感兴趣的:(node-npm)