我破坏了我的 NPM 注册表,现在无法创建反应应用程序;我哪里做错了?
I broke my NPM registry and now can't create a react-app; where did I go wrong?
当我运行命令npx create-react-app 这是我收到的错误,我不知道哪里错了?对这种情况有什么指导吗?
PS C:\Users\ssand\wave_portal_3.0> npx create-react-app
npm ERR! code E405
npm ERR! 405 Method Not Allowed - GET https://registry.npmjs.org/hardhart/create-react-app
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ssand\AppData\Roaming\npm-cache\_logs21-12-05T23_31_09_147Z-debug.log
Install for [ 'create-react-app@latest' ] failed with code 1
PS C:\Users\ssand\wave_portal_3.0>
您只需使用 npm set registry https://registry.npmjs.org/
将您的 npm 注册表重置为默认值
当我运行命令npx create-react-app 这是我收到的错误,我不知道哪里错了?对这种情况有什么指导吗?
PS C:\Users\ssand\wave_portal_3.0> npx create-react-app
npm ERR! code E405
npm ERR! 405 Method Not Allowed - GET https://registry.npmjs.org/hardhart/create-react-app
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ssand\AppData\Roaming\npm-cache\_logs21-12-05T23_31_09_147Z-debug.log
Install for [ 'create-react-app@latest' ] failed with code 1
PS C:\Users\ssand\wave_portal_3.0>
您只需使用 npm set registry https://registry.npmjs.org/