microsoft / TypeScript-React-Native-Starter

A starter template for TypeScript and React Native with a detailed README describing how to use the two together.
MIT License
1.91k stars 210 forks source link

unmet dependencies when running `npm i` #11

Open stabenfeldt opened 6 years ago

stabenfeldt commented 6 years ago

I cloned the repo and ran npm i:

➜  TypeScript-React-Native-Starter git:(master) ✗ npm i
npm ERR! Darwin 16.7.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i"
npm ERR! node v4.5.0
npm ERR! npm  v2.15.9
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package react@16.0.0-alpha.6 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer react-native@0.44.3 wants react@16.0.0-alpha.6
npm ERR! peerinvalid Peer react-dom@15.6.2 wants react@^15.6.2
npm ERR! peerinvalid Peer react-test-renderer@15.6.2 wants react@^15.6.2
npm ERR! peerinvalid Peer enzyme@2.9.1 wants react@0.13.x || 0.14.x || ^15.0.0-0 || 15.x

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/martins/TypeScript-React-Native-Starter/npm-debug.log

How do we fix this?