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

后端 未结 15 1021
余生分开走
余生分开走 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:41

    For Windows 10, you can simply add the npm folder to your path environment variable.

    1. Hit Windows key and search for Environment variables.
    2. Inside the Path variable under System variables, add a new entry with this content (without /node_modules ):

    %USERPROFILE%\AppData\Roaming\npm

    1. Open a new command prompt and enter

    > expo

    You will see something like this:

提交回复
热议问题