【问题标题】:npx create-react-app not generating public and src foldernpx create-react-app 未生成公共和 src 文件夹
【发布时间】:2020-06-13 17:26:20
【问题描述】:

当我执行 npx create-react-app myest 时,我的 react 项目中没有生成公共和 src 文件夹。

我尝试使用 npm uinstall -g create-react-app 卸载全局 create-react-app,然后使用 npm install -g create-react-app 重新安装它。但是,在我执行 npx create-react-app myest 后,它卡在了下面的屏幕上

【问题讨论】:

  • 不带全局标志安装create-react-app会有帮助吗?
  • 您好,谢谢!猜猜全局标志真的被弃用了

标签: reactjs npm create-react-app npx


【解决方案1】:

最初尝试使用但没有成功: npm rm -g create-react-app, npm install -g create-react-app, npx create-react-app <your-app-name>.

以下命令有效: npx --ignore-existing create-react-app Your-AppName

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-02-12
    • 2020-08-12
    • 1970-01-01
    • 2020-12-26
    • 2018-11-16
    • 2020-04-01
    • 2018-06-06
    相关资源
    最近更新 更多