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

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

    For me, i uninstalled node.js,

    i re-installed node.js,

    i ran npm install -g expo-cli,

    then ran expo --version (the expo command began to work).

    Hope this helps.

    0 讨论(0)
  • 2020-12-30 01:31

    This worked for me:

    1. You must uninstall node js then install it again.
    2. You must run npm install expo-cli.

    It will solve your problem

    0 讨论(0)
  • 2020-12-30 01:32

    Re-install node.js and then run npm install -g expo-cli in command prompt.

    0 讨论(0)
  • 2020-12-30 01:32

    I have fixed this in Windows 10 by setting Path C:\Users\[USERNAME] this line save my hrs

    0 讨论(0)
  • 2020-12-30 01:37

    I faced same problem and it was not getting resolved by "npm install --global expo-cli". Global CLI was having error as SS below -

    • npm list -g --depth 0

    Followed below steps to get it resolved

    1. npm uninstall --global expo-cli
    2. Deleted global package causing error C:\Users<USERNAME>\AppData\Roaming\npm\node_modules\expo-cli
    3. npm install --global expo-cli

    And expo cli worked. Happy coding!!!

    0 讨论(0)
  • 2020-12-30 01:38

    This is a more general problem where your global node modules are not in your system path. This question is what you are looking for: Nodejs cannot find installed module on Windows?

    0 讨论(0)
提交回复
热议问题