【问题标题】:Issue installing React on Windows 10 with npm使用 npm 在 Windows 10 上安装 React 时出现问题
【发布时间】:2019-05-12 02:30:23
【问题描述】:

我正在使用安装了 node 和 npm 的 Windows 机器。尝试在 React 应用程序上工作,但无法使用以下方式安装反应:

npm install -g create-react-app

错误:

 npm ERR! code Z_BUF_ERROR
 npm ERR! errno -5
 npm ERR! zlib: unexpected end of file

 npm ERR! A complete log of this run can be found in:
 npm ERR!     C:\Users\MyName\AppData\Roaming\npm-cache\_logs\2019-05-11T17_56_06_899Z-debug.log

【问题讨论】:

  • 发布日志文件信息可能会有所帮助

标签: node.js reactjs windows npm


【解决方案1】:

尝试运行 npm cache clear --force,作为一个严肃的提示,只有在你知道自己在做什么的情况下才使用 --force 运行它。

【讨论】:

    猜你喜欢
    • 2021-05-29
    • 2020-01-22
    • 2013-01-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-02
    • 1970-01-01
    相关资源
    最近更新 更多