创建react项目时遇到的报错
百度到的第一个方法:
1.执行npm install -g create-react-app全局安装
2.执行npx create-react-app myapp创建项目(这里可以执行 create-react-app myapp,也可以创建)
结果控制台打印:
(node:18924) ExperimentalWarning: The fs.promises API is experimental
You are running `create-react-app` 4.0.1, which is behind the latest release (4.0.2).
We no longer support global installation of Create React App.
Please remove any global installs with one of the following commands:
- npm uninstall -g create-react-app
- yarn glob