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

后端 未结 15 959
余生分开走
余生分开走 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 had the same problem last night, and I've recently started my journey in ReactNative. So, there might be better answers out there.

    If you're following the ReactNative Official documentation, the first time npm start works fine, the subsequent ones throws an error saying expo is not recognized. I got around that by running expo start and not npm start ( which basically is the same thing but doesn't work for some reason ).

    So, mine looks like a work around rather than an explanation as to why this happens or how to permanently fix it.

提交回复
热议问题