当我输入npx create-react-app ./命令来创建一个react时,它会发出以下警告,而不是创建该应用程序
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:
https://create-react-app.dev
我正试图按照这些创建一个带有类型记录模板的新项目。
npx create-react-app app-ui --template typescript
尽管它安装了所有节点模块,但它并不创建初学者项目,也不使用提供的模板。我收到这样的信息:
A template was not provided. This is likely because you're using an outdated version of create-react-app.
Please note that global installs of create-react-app are no longer su
最新版本的create-react-app是4.0.3,但当我运行npx create-react-app my-app时,它使用1.5.2版本,也不使用模板。我没有任何全局安装它,并尝试卸载它使用npm uninstall -g create-react-app。
我的npm版本是7.21.1,节点版本是16.9.1
我怎么才能让它起作用?请帮帮忙。
编辑:在创建应用程序时有58个漏洞,这是在最后-
A template was not provided. This is likely because you're using an outdated version of creat
我正在运行npm uninstall create-react-app,它返回
npm WARN saveError ENOENT: no such file or directory, open '/Users/me/Documents/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/me/Documents/package.json'
npm WARN Documents No description
npm WARN Documents No rep
我有问题的npx创建-反应-应用涉及全球安装。我的困惑产生了,因为据我所知,创建-反应-应用程序包没有安装在我的机器上。
一些细节:
我像以前和最近在同一台机器上多次做的那样,启动了一个react项目(使用类型记录模板):
npx create-react-app --template typescript .
我从终点站收到这个提示
Need to install the following packages: create-react-app Ok to proceed? (y)
我按y键确认可以继续。(如果按n,则进程终止时会出现以下错误:npm ERR! canceled。)终端随后显
当我尝试使用以下代码安装react应用程序时 npx create-react-app app1 我遇到了以下问题 A template was not provided. This is likely because you're using an outdated version of create-react-app.
Please note that global installs of create-react-app are no longer supported.
You can fix this by running npm uninstall -g create-
我正在尝试运行create-react-app,但不断收到关于更新节点版本的错误: The engine "node" is incompatible with this module. Expected version "^8.10.0 || ^10.13.0 || >=11.10.1". Got "11.10.0" 我找到了this帖子,并尝试使用sudo n stable。输出结果为: installed : v12.14.0 to /usr/local/bin/node
active : v11.10.0 at /Users/Kr
伙计们。我在使用npx create-react-app脚本时遇到了问题。每当我尝试创建一个react应用程序时,它总是这样显示:
Creating a new React app in C:\USER\User\Document\GitHub\Projects
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
它总是卡在那里。我放了差不多八个小时,但还是不管用。
我一直在尝试使用npm install npm@latest -
我有一个创建反应应用程序,可以在我的Windows 10工作站上运行节点v12.19.0和NPMv6.14.8。我已经能够运行npm start和npm run build,并且能够很好地访问应用程序。
当我试图将相同的代码部署到DigitalOcean的App平台和Ubuntu微滴上时,我无法让这个应用程序启动。当我运行npm run build时,我会得到下面的错误
我想这可能是因为我在Windows上开发了这个应用程序,我的项目中的一些文件夹可能引起了问题。为了测试这一点,我再次使用了create-react-app,并能够在Ubuntu中运行股票应用程序。然后,我将我的src和pu
我尝试使用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 installation of Create React App.
我该如何解决这个问题呢?
下午好,
我试图在我的项目中安装react和react-redux,但是我一直收到一些我不理解的错误。
$ npx create-react-app learn-redux
npm ERR! code ENOLOCAL
npm ERR! Could not install from "Phelps\AppData\Roaming\npm-cache\_npx\13464" as it does not contain a package.json file.
npm ERR! A complete log of this run can be found in:
npm ER
使用yarn create react-app my-app似乎对我有用。
试图创建一个新的反作用应用程序并面对这个问题。其他人的解决方案对我没有用,所以张贴我到目前为止所采取的步骤。
npx create-react-app my-app
返回
You are running `create-react-app` 5.0.0, which is behind the latest release (5.0.1).
We no longer support global installation of Create React App.
Please remove any global
C:\Users\lg\Desktop> npm uninstall -g create-react-app
up to date, audited 1 package in 216ms
found 0 vulnerabilities
C:\Users\lg\Desktop>npx clear-npx-cache
Need to install the following packages:
clear-npx-cache
Ok to proceed? (y) y
C:\Users\lg\Desktop>npx create-react-app@5.0.0 redux