【发布时间】:2021-02-07 09:37:10
【问题描述】:
我是新手,但我已经创建了一些应用程序,但是今天当我尝试创建一个新应用程序时,它只是不起作用。我正在使用 Node 版本 v15.6.0 和 npm 7.4.0。 我的操作系统是 Windows 10。
我正在处理的文件树:C: Users\kryst\Documents\test-app\app\package.JSON
但是当我在C: Users\kryst\Documents\test-app 目录中运行npx create-react-app app 时,它会抛出这些消息。
PS C:\Users\kryst\Documents\test-app> npx create-react-app app
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 global remove create-react-app
The latest instructions for creating a new app can be found here:
npm ERR! code 1
npm ERR! path C:\Users\kryst\Documents\test-app
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c create-react-app app
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\kryst\AppData\Local\npm-cache\_logs\2021-02-07T09_22_38_962Z-debug.log
我已经尝试过npm cache clean --force ,重新安装整个应用程序并重新启动计算机。
您知道如何解决这个问题吗?我会很感激任何事情。
【问题讨论】:
标签: javascript node.js reactjs npm create-react-app