【发布时间】:2021-12-31 19:57:39
【问题描述】:
npx create-react-app my-app
错误: 我们不再支持全局安装 Create React App。 请使用以下命令之一删除任何全局安装: - npm 卸载 -g create-react-app - yarn global 移除 create-react-app
我试过了
npm uninstall -g create-react-app
然后
npx create-react-app my-app
但它仍然给我同样的错误 节点--版本 v14.17.6 npm --version 8.1.1
【问题讨论】:
-
尝试运行它可能会修复 $ npm cache verify $ npm clean cache --force
标签: reactjs