Exp start:error


#1

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


#2

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


#3

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


#4

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


#5

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