npx create-react-app myapp 生成 FETCH_ERROR

时间:2021-04-05 05:53:14

标签: node.js reactjs npm create-react-app

npm ERR! code FETCH_ERROR
npm ERR! errno FETCH_ERROR
npm ERR! invalid json response body at http://registry.npmjs.org/@typescript-eslint%2fparser reason: 
Unexpected number in JSON at position 80754

什么都不适合我 节点版本 = v15.13.0 npm 版本 = 7.7.6

1 个答案:

答案 0 :(得分:0)

这可能是因为您的系统在错误的 URL 上寻找依赖项。 我希望这对你有用:

npm config set proxy null
npm config set https-proxy null
npm config set registry http://registry.npmjs.org/
相关问题