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

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

    If it still doesnt work or you can't access npm. Try setting the path with the Windows PowerShell:

    1. Open Windows Powershell as Administrator
    2. Type: setx path "%path%;C:\Users\USERNAME\AppData\Roaming\npm"

    It worked for me.

提交回复
热议问题