'expo' is not recognized as an internal or external command

后端 未结 15 1070
余生分开走
余生分开走 2020-12-30 01:12

After running npm install -g expo-cli and successfully installing the packages globally, expo is still not recognized as an internal or external co

15条回答
  •  青春惊慌失措
    2020-12-30 01:39

    I may be too late to answer this, but for people looking for the same error this is what worked for me.

    1. Install yarn if you don't have it. I used the command choco install yarn (you'll have to install Chocolatey). If you have scoop installed, scoop install yarn also works.

    2. Use yarn to install expo with yarn global add expo-cli.

    3. expo start should work now. yarn start and npm start should also work.

    Hope that helps!

提交回复
热议问题