npm或yarn全局安装create-react-app完整步骤
warning:
这篇文章距离上次修改已过202天,其中的内容可能已经有所变动。
要使用npm或yarn全局安装create-react-app,请按照以下步骤操作:
- 打开终端(命令行界面)。
- 使用npm或yarn全局安装create-react-app。
使用npm安装:
npm install -g create-react-app
使用yarn安装:
yarn global add create-react-app
安装完成后,你可以使用create-react-app
命令创建新的React应用程序:
create-react-app my-app
这里my-app
是你的项目名称。
评论已关闭