I can't install expo-cli

北战南征 提交于 2019-12-04 15:19:40

I was having the same problem with npm install -g expo-cli, having "MODULE_NOT_FOUND",

I installed yarm with brew, just in case you do not already have it:

brew install yarn

and then use:

yarn global add expo-cli

to create a project you can:

expo init nameOfTheNewProject

and choose a template in the console. Finally run the project with

yarn start

Let me know if it works for you!

1.run "npm update -g" update all npm global packages.

2.run "yarn add global expo-cli"

3.uninstall exop cli > clean npm cache folder, .expo folder install install again

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!