npm报错 报错! npm ERR! Unexpected token < in JSON at position 0 while parsing near ' 报错! 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