Exp start:error

Hi
When I create new project and start it, everything works ok, but when I install any dependency, i get an error:"React native is not installed. Please run npm install in your project directory."
npm install doesn’t cause any effect
In dependency list i see react-native:"somelink"
I tried to uninstall RN package and install it manually from npm, but in this case i get another errors.
Does anybody can recommend me something?
Thank you for your attention

How are you installing additional dependencies? Does npm install produce any output?
That link is the expo version of react-native, which you shouldn’t change to the npm version

my actions after creating project in expo
i have both watchman & fb-watchman installed globally
npm install cause watchman crash only(
image

good general purpose commands to fix dependency issues:

watchman watch-del-all
rm -rf node_modules
rm -rf $TMPDIR/react-*
and yarn or npm install (I believe the latest release of npm is ok, but earlier npm 5 releases have had some issues)

that permissions failure is novel for me though. I would try to resolve that first

I didn’t try your advice, but I downgraded npm to 4.6.1 from 5.0.3 and everything works fine

1 Like