我已经安装了没有-g的create-react-app
C:\Users\user1\projects\react>npm install create-react-app
但是当我跑的时候
C:\Users\user1\projects\react>create-react-app my-app1
我得到以下错误
'create-react-app' is not recognized as an internal or external command, operable program or batch file.
有人能帮我理解一下-g标志的作用吗
如果我不
当我输入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
所以,我想启动一个react项目,然后运行npx create-react-app myapp,我得到了这个。
You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0).
We no longer support global installation of Create React App.
Please remove any global installs with one of the following commands:
- npm uninstall -g creat
我使用的是:
Windows 10
npm -v 5.8.0
npx -v 9.7.1
在运行npx时,我得到:"The "path" argument must be of type string"。
我正在尝试创建一个React应用程序。获取此错误:
λ npx create-react-app myapp
npx: installed 1 in 4.576s
The "path" argument must be of type string
C:\Users\MyUser\AppData\Roaming\npm\node_modules
在安装create-react-app时,我在启动开发服务器(npm start )时收到以下错误: ./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./src/index.css)
Error: No valid exports main found for 'myproject\node_modules\colorette' 我已经用create-react-app -g全局重新安装了cre
我已经安装了react,并在CMD上运行了基本的命令,但是每次屏幕截图都是这么说和重复的。我还在全球范围内安装了它,got节点,npm,并创建了react版本。但当我create-react-app tutorial的时候它说的是一个错误
C:\Users\ehsan>node -v
'node' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\ehsan>node -v
'node' is not reco
我正试图按照这些创建一个带有类型记录模板的新项目。
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
我正在尝试从一个react项目开始,我安装了带有npm的create-react-app。当我执行create-react-app伪图命令时,我得到以下错误:
Aborting installation.
Unexpected error. Please report it as a bug:
{ Error: Cannot find module 'C:\Users\leonel\Desktop\pseudogram\node_modules\react-scripts\package.json'
at Function.Module._resolveFilename