How to fix npm start "cannot determine native SDK version" error?
Try npm install expo
instead of yard add expo
.
Note: yarn
is another package manager just like npm
. If you have npm
installed already then you can replace yarn add
with npm install
always.
Just wanted to chime in that running npm install
solved the problem for me. (I figured out that the problem was probably because my dependencies were not properly installed.)
When grabbing the project from a remote repository, it obviously isn't going to grab the node_modules folder (folder with all the project dependencies) because it's in the .gitignore. Why is it in the .gitignore? Because it's too big and can be easily downloaded on a local machine when needed (by running npm install
).
This npm install
command installs all dependencies in package.json into a local folder called node_modules, thus ensuring all my dependencies are properly installed. This then allows my project to work.