【问题标题】:NPM got stuck in terminal while creating react app?NPM 在创建反应应用程序时卡在终端中?
【发布时间】:2020-12-23 11:26:37
【问题描述】:

我正在创建我的第一个 react 应用程序,我按照 react Getting Started 页面的指导进行了所有操作。 当我运行 npx create-react-app first-appnpm init react-app first-app 时,安装的东西开始了,这需要几分钟。两个加载栏完成后,此时终端被闪烁的光标卡住,如下图所示。

Image here

在中止进程之前,我等待了大约 1 小时。此外,当我查看 exam-portal 文件夹时,只有 node_modules,pakage.json 和 pakage-lock.json 文件。没有 src 或公用文件夹

~任何帮助都会不胜感激~
'提前致谢'

【问题讨论】:

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


    【解决方案1】:

    按照以下步骤进行

    update node (and npm) to latest version, if not latest
    
    npm cache clean --force 
    npx create-react-app first-app
    

    【讨论】:

      猜你喜欢
      • 2022-01-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-01
      • 2020-03-15
      • 1970-01-01
      • 2017-10-22
      • 1970-01-01
      相关资源
      最近更新 更多