我刚刚开始学习react,但这个错误正在以我的方式出现。我已经安装了node.js最新版本的14.6.0,并且安装成功。至此,我已经安装了create-react-app。我已经通过每一种旧的或最新的方法(在他们的github上)安装了它,它也可以安装,版本是3.4.1。它抛出的错误是: Installing packages. This might take a couple of minutes.ChildProcess instance at:
at ChildProcess.cp.emit (C:\User
我尝试使用npm i create-react-app、npx create-react-app new-app和npm init react-app new-app安装create-react-app,但一直收到以下错误消息:
You are running create-react-app 4.0.0, which is behind the latest release (4.0.1).We no longer support global in
当我在命令行界面中运行create-react-app时,我得到以下错误消息:internal/modules/cjs<anonymous> (/usr/local/lib/node_modules/create-react-app/createReactApp.js:40:12)
at Module._load (internal
ORIGONAL问题我刚刚尝试使用create- react app安装一个新的react应用程序,并且首先得到了这个错误。Please note that global installs of create-react-app are no longer supported.已安装节点模块,但没有安装正常安装的其他文件或目录。我试图运行命令npm卸载-g创建反应应用程序,但由于mac阻止了它,所以运行sudo npm卸载-g创建反应应用程序而无法运行。当我现在运行
当我在我的终端中输入create-react-app my-app命令时,它看起来很有效--成功地下载了所有的库等等。输入输出
Creating a new React app in /Users/user/Desktop/my-app.Please note that global installs of create-r
我已经尝试过这两个命令,并且得到了相同的错误。npm clean cache --force
npm WARN exec The following package was not found and will be installed: create-react-appCreating a new React app in
每次我尝试运行npx创建-反应-应用程序我的应用,同样的错误会显示:
A template was not provided.Please note that global installs of create-react-app are no longer supported.You can fix this by running npm uninstall -g create-react-app or yarn global remove create-react-appbefore using <e
每当我跑它会抛出这个错误:4.0.3, which is behindWe no longer support global installation of Create React App.Please remove any global installs with one of the following commands:
- npm uninst