简体   繁体   English

运行 npx create-react-app 时遇到错误

[英]Facing error while running npx create-react-app

npm ERR! npm 错误! code E470代码 E470

npm ERR! npm 错误! 470 status code 470 - GET http://registry.npmjs.org/create-react-app 470 状态码 470 - 获取http://registry.npmjs.org/create-react-app

npm ERR: A complete log of this run can be found in: npm ERR. npm ERR:此运行的完整日志可在以下位置找到:npm ERR。 C:\Users\L173734\AppData\Roaming\npm-cache_logs\2022-08-26T12_23_13_499Z-debug.log Install for [ 'create-react-app@latest' ] failed with code 1 C:\Users\L173734\AppData\Roaming\npm-cache_logs\2022-08-26T12_23_13_499Z-debug.log 安装 ['create-react-app@latest'] 失败,代码为 1

HOW TO GET RID OF THIS ERROR.如何摆脱这个错误。 My Proxy setting is OFF.我的代理设置为关闭。

Try this two command, may be it's work for you试试这两个命令,可能对你有用

  1. npm cache verify
  2. npm install -g create-react-app

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM