创建新应用无法在:npx create-react-app app-name和npm init react-app app-name上工作,只能在:yarn create react-app app-name上创建。
npx create-react-app app-name
npm init react-app app-name
yarn create react-app app-name
zpjtge221#
似乎在使用create-react-app包之前应该先安装它。请按照以下步骤操作:
npm install -g create-react-app npx create-react-app app-name
1条答案
按热度按时间zpjtge221#
似乎在使用create-react-app包之前应该先安装它。请按照以下步骤操作: