Please I am getting this error "Please verify that the package.json has a valid "main" entry.

Please I am getting this error "Please verify that the package.json has a valid “main” entry.


And I have the main as “main”:“index.js”,

Hi @akintunji

Try running expo-cli doctor --fix-dependencies

It looks like it’s complaining about the package.json in one of your dependencies?

This is what I got after that, npm exited with non-zero code:1

You could also try removing your npm cache (‘npm cache clean’ or ‘npm cache clean --force’), and removing the node_modules folder, and then doing a fresh ‘npm install’.

1 Like