NodeJS 如何使用npm在命令提示符下安装react

31moq8wy  于 2023-04-11  发布在  Node.js
关注(0)|答案(1)|浏览(151)
npm install -g create-react-app
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.

changed 67 packages, and audited 68 packages in 4s

5 packages are looking for funding
  run `npm fund` for details

2 high severity vulnerabilities

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.

npm install -g create-react-app
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.

changed 67 packages, and audited 68 packages in 4s

5 packages are looking for funding
  run `npm fund` for details

2 high severity vulnerabilities

Some issues need review, and may require choosing
a different dependency.

Run `npm audit` for details.
niwlg2el

niwlg2el1#

create-react-app文档建议卸载使用npm install -g create-react-app安装的包,而不是使用npx。
然后使用npx create-react-app app-name-here创建一个新的react应用
来源:https://create-react-app.dev/docs/getting-started/

相关问题