我破坏了我的 NPM 注册表,现在无法创建反应应用程序;我哪里做错了?



当我运行commmand-npx create-react-app时,这是我收到的错误,我不知道哪里出错了?关于这种情况有什么指导意见吗?

PS C:Usersssandwave_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:UsersssandAppDataRoamingnpm-cache_logs2021-12-05T23_31_09_147Z-debug.log        
Install for [ 'create-react-app@latest' ] failed with code 1
PS C:Usersssandwave_portal_3.0>  

您只需要使用npm set registry https://registry.npmjs.org/将npm注册表重置为默认值

相关内容

最新更新