create-react-app 命令卡在使用 cra-template 安裝 react react-dom react-scripts (create-react-app command stuck on installing react react-dom react-scripts with cra-template)


問題描述

create‑react‑app 命令卡在使用 cra‑template 安裝 react react‑dom react‑scripts (create‑react‑app command stuck on installing react react‑dom react‑scripts with cra‑template)

我今天已經安裝了 node.js 並且成功啟動了 npm install ‑g create‑react‑app 命令。但在那之後,當我使用 npm create‑react‑app appname 命令時,它只是停留在步驟 ‑ 在此處輸入圖像描述

幾乎2小時沒有響應。我也嘗試過其他命令,例如 npm init,它們運行良好,但這需要很長時間而沒有響應。我正在使用 npm 版本 6.14.5 和節點版本 12.18.2 的 32 位 Windows 計算機。此外,網絡運行良好,所以我確定這不是問題。


參考解法

方法 1:

I have faced the same issue, I have done 3 things,

  1. Just reset the firewall & security settings as default.
  2. Re‑install your node‑js & restart your PC.

  3. </ol>

    Now it is working fine.

    Images from Npm:

    enter image description here

    enter image description here

    方法 2:

    Just install a 32 bit version of node on windows and try again. This solved my issue

    方法 3:

    Use npx create‑react‑app my‑app instead to create an react App. See official docs: https://reactjs.org/docs/create‑a‑new‑react‑app.html

    方法 4:

    Just reset the firewall & security settings as default. Re‑install your node‑js & restart your PC. Now it is working fine.

    (by Ankur GuptaTyloR_VIPNilabh WaingankarRakesh KumarAbdallah Mohammad)

    參考文件

    1. create‑react‑app command stuck on installing react react‑dom react‑scripts with cra‑template (CC BY‑SA 2.5/3.0/4.0)

#installation #react-native #reactjs #node.js






相關問題

Instal versi Firebird yang benar (32bit atau 64bit) dengan Inno Setup (Install correct version of Firebird (32bit or 64bit) with Inno Setup)

在 Ubuntu 中與 EPD python 一起安裝 NLTK (Installing NLTK alongside EPD python in Ubuntu)

INSTAL_PARSE_FAILED_NO_CERTIFICATES - 試圖在 robotsium 上測試不是我的 .apk 文件 (INSTAL_PARSE_FAILED_NO_CERTIFICATES - trying to test not my .apk file on robotium)

直截了當的回答:安裝 py2app (Straight and simple answer: installing py2app)

Sql 2008 排序規則 (Sql 2008 Collation)

Apache Ant Build 命令“拒絕訪問” (Apache Ant Build command "Access Denied")

如何在 C# 部署中包含文件? (How can I include files in a C# deployment?)

使用一個安裝程序安裝多個軟件(安裝包裝器?) (Install multiple softwares with one installer (install wrapper?))

如何獲取 Eclipse 安裝目錄的絕對路徑? (How can I get the absolute path to the Eclipse install directory?)

iPhone,如何使用objective-c為iphone安裝新字體? (Iphone,how to install new font to iphone by using objective-c?)

create-react-app 命令卡在使用 cra-template 安裝 react react-dom react-scripts (create-react-app command stuck on installing react react-dom react-scripts with cra-template)

tensorflow安裝報錯(ERROR:找不到滿足tensorflow要求的版本) (Tensorflow installation error (ERROR: Could not find a version that satisfies the requirement tensorflow))







留言討論