npm i 报错 Unexpected token in JSON at position 0 while parsing near html

方法一 npm cache clean --force(亲测可用)

方法二 npm config set registry https://registry.npmjs.org(清除淘宝镜像)

然后npm i

你可能感兴趣的:(npm,node.js,前端)