【问题标题】:react app is not getting created using command npx create-react-react没有使用命令 npx create-react-react 创建反应应用程序
【发布时间】:2020-10-06 11:12:54
【问题描述】:

我想创建反应应用程序,但我的 npx create-react-app myapp 命令不起作用 D:\AED>npx create-react-app aed npx:在 52.503 秒内安装了 98 个

在 D:\AED\aed 中创建一个新的 React 应用程序。

安装包。这可能需要几分钟。 使用 cra-template 安装 react、react-dom 和 react-scripts...

现在卡在这里两个小时了。

【问题讨论】:

  • 你试过先全局安装create-react-app再运行吗? npm install -g create-react-app。在尝试此操作后,您应该在全局范围内卸载它,如create-react-app.dev/docs/getting-started 所述。我们只是将其作为测试。
  • 不试试这个谢谢

标签: reactjs npm create-react-app npm-install npx


【解决方案1】:

试试

npm config set registry "http://registry.npmjs.org"

(来自:https://stackoverflow.com/a/55914481/3317728

【讨论】:

    猜你喜欢
    • 2020-10-31
    • 2022-07-31
    • 1970-01-01
    • 1970-01-01
    • 2020-09-16
    • 1970-01-01
    • 1970-01-01
    • 2022-10-20
    • 2022-01-25
    相关资源
    最近更新 更多