我在安装和创建新的 React js 应用程序时遇到问题

问题描述 投票:0回答:2

当我运行此命令行时:

npx create-react-app my_app

即使我有最新版本的nodejs,也会出现此错误: first part of the error

second part of the error

reactjs installation create-react-app npm-install npx
2个回答
0
投票

仔细阅读 Freecode 阵营中的这篇文章:https://www.freecodecamp.org/news/install-react-with-create-react-app/ => 如果不起作用,请检查您的 Node js 安装。如果您的计算机上安装了node js,请确保您的node版本是16.15.0(这意味着“推荐给大多数用户”)。 确保仔细观看文章中给出的视频。


0
投票

如果您在Windows上打开/关闭自动检测代理设置,然后重新打开cmd尝试立即安装。 enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.