npm报错

报错! npm ERR! Unexpected token < in JSON at position 0 while parsing near ’

在这里插入图片描述
清除缓存

npm cache clear --force

换个淘宝镜像

npm config set registry https://registry.npm.taobao.org

在全局更新一下

npm install npm -g
posted @ 2019-06-21 10:08  ZMemory  阅读(120)  评论(0)    收藏  举报