Nik*_*rts 14 command-line reactjs create-react-app
我知道我以前做过,但是似乎找不到任何答案。我想运行create-react-app而不在我已经进入的文件夹中创建整个其他文件夹。我相信这只是附加到命令的附加标志。
Bak*_*rov 56
如果您之前已
create-react-app通过 全局安装npm install -g create-react-app,我们建议您卸载软件包npm uninstall -g create-react-app以确保npx始终使用最新版本。
对于create-react-app(v3)的新版本:
npx create-react-app .
请注意命令末尾的句号(点).对应于当前目录
Tho*_*lle 41
您可以通过写入.而不是项目名称在当前目录中创建一个新的React应用。
create-react-app .
小智 18
就我而言,我使用的是 Windows PowerShell,但npx create-react-app ./它对我不起作用,所以我最终使用了它 -
npx create-react-app .
Jas*_*llo 15
以下仅当您的当前目录符合 npm 命名限制时才有效。
npx create-react-app . 
当前目录必须:
例如,当前目录不能命名为“React App”。它必须是“反应应用程序”。
小智 10
npx create-react-app . my-app --template typescript
| 归档时间: | 
 | 
| 查看次数: | 3720 次 | 
| 最近记录: |