创建反应应用程序错误! 404 找不到对象
create-react-app ERR! 404 Object Not Found
我正在尝试 运行 create-react-app (npx create-react-app fetching-images
),它会加载一段时间然后我每次都会收到此错误:
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 Object Not Found - GET https://skimdb.npmjs.com/registry/cyclist/-/cyclist-1.0.1.tgz - not_found
npm ERR! 404
npm ERR! 404 'cyclist@https://skimdb.npmjs.com/registry/cyclist/-/cyclist-1.0.1.tgz' 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
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! /Users/Eric/.npm/_logs/2021-03-14T10_02_15_171Z-debug.log
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
我完全卸载了 node、npm 和 npx,然后从 https://nodejs.org/en/ 重新安装了最新版本,但仍然出现此错误。我在 macOS(v.11.2.2)、npm v.7.6.0、node v.15.11.0.
如何修复此错误?
请尝试这样设置:
npm config set registry http://registry.npmjs.org
我正在尝试 运行 create-react-app (npx create-react-app fetching-images
),它会加载一段时间然后我每次都会收到此错误:
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 Object Not Found - GET https://skimdb.npmjs.com/registry/cyclist/-/cyclist-1.0.1.tgz - not_found
npm ERR! 404
npm ERR! 404 'cyclist@https://skimdb.npmjs.com/registry/cyclist/-/cyclist-1.0.1.tgz' 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
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! /Users/Eric/.npm/_logs/2021-03-14T10_02_15_171Z-debug.log
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts cra-template has failed.
我完全卸载了 node、npm 和 npx,然后从 https://nodejs.org/en/ 重新安装了最新版本,但仍然出现此错误。我在 macOS(v.11.2.2)、npm v.7.6.0、node v.15.11.0.
如何修复此错误?
请尝试这样设置:
npm config set registry http://registry.npmjs.org