gpt4 book ai didi

javascript - 错误: create-react-app Aborting installation

转载 作者:行者123 更新时间:2023-12-02 21:48:12 26 4
gpt4 key购买 nike

根据 Reactjs 文档:

You’ll need to have Node >= 8.10 and npm >= 5.6 on your machine. To create a project, run:

npx create-react-app my-app

我的环境满足它:

AymanMorsy@DESKTOP-6V4567D MINGW64 /g/reactprojects
$ node --version && npm --version 👈👈
v12.16.0 👈👈
6.13.4 👈👈

AymanMorsy@DESKTOP-6V4567D MINGW64 /g/reactprojects
$ npx create-react-app my-app
npx: installed 99 in 17.908s

Creating a new React app in G:\reactprojects\my-app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz
npm ERR! 404
npm ERR! 404 'error-ex@^1.3.1' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'parse-json'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\AymanMorsy\AppData\Roaming\npm-cache\_logs\2020-02-12T21_29_30_123Z-debug.log

Aborting installation. 🚨🚨🚨
npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.

Deleting generated file... package.json
Deleting my-app/ from G:\reactprojects
Done.

我在Create React App not installing, showing an error and aborting installation上尝试了解决方案

最后我格式化了C并安装了windows10的最新更新,但仍然看到同样的问题

编辑: npm 配置列表的输出

$ npm config list
; cli configs
metrics-registry = "https://registry.npmjs.org/"
scope = ""
user-agent = "npm/6.13.4 node/v12.16.0 win32 x64"

; builtin config undefined
prefix = "C:\\Users\\AymanMorsy\\AppData\\Roaming\\npm"

; node bin location = C:\Program Files\nodejs\node.exe
; cwd = G:\reactprojects
; HOME = C:\Users\AymanMorsy
; "npm config ls -l" to show all defaults.

最佳答案

看起来像https://registry.npmjs.org/error-ex部分地区已关闭

很快就会了

关于javascript - 错误: create-react-app Aborting installation,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60197368/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com