【问题标题】:npx create-react-app myapp generates FETCH_ERRORnpx create-react-app myapp 生成 FETCH_ERROR
【发布时间】:2021-04-05 05:53:14
【问题描述】:
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

【问题讨论】:

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


    【解决方案1】:

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

    npm config set proxy null
    npm config set https-proxy null
    npm config set registry http://registry.npmjs.org/
    

    【讨论】:

    • npm 错误!代码 FETCH_ERROR npm ERR! errno FETCH_ERROR npm ERR! registry.npmjs.org/create-hmac 处的无效 json 响应正文原因:JSON 中位置 715 处的意外标记 n
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-06-29
    • 2021-09-11
    • 2020-06-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多