I cannot create a new React Native project using react-native init <ProjectName> .
This is the first time I've tried upgrading to macOS Sierra, but I don't know if this is related.
If I run the command with the --verbose flag, it runs through all npm packages, but then ultimately outputs the following:
βββ UNMET PEER DEPENDENCY react@ ~15.3.1 <List of other packages including react-native 0.34.1> npm WARN react-native@0.34.1 requires a peer of react@ ~15.3.1 but none was installed. npm verb npm verb If you need help, you may report this error at: npm verb <https://github.com/npm/npm/issues> npm verb exit [ 0, true ] npm info ok
Then he just sits there endlessly. The last time I created a reciprocal native project, it could take a maximum of 20-30 seconds, but now it never ends (after 10-15 minutes).
If I kill this process, all I have is package.json with only the following:
{ "name": "TestApp", "version": "0.0.1", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start" }, "dependencies": { "react-native": "0.34.1" } }
... and the node_modules folder contains the directive response and its dependencies. There are none of the required Xcode / Android folders or index entry points, settings, etc.
I tried reinstalling all the necessary dependencies (node, homebrew), and I also reinstalled git via homebrew.
I have seen other themes that suggest manually installing React, but I do not buy it. This was used to work and React, which was used to install as part of the process, but now I get this warning and the game.
Has anyone else seen this problem?
EDIT
I just tried this on my other Mac, also working with macOS Sierra, and it worked fine. I followed the same steps on this so that all my addictions are up to date with the latest developments. I made a detailed init and still got a warning that React 15.3.1 is missing, but then it executed and installed Reacrt 15.3.2, and then installed all the files of the Xcode / Android project.
Very weird / annoying since I really need to start something together on this Mac.
SECOND EDIT
If I create a new user account on my Mac and log into it, I can create a project, so it seems to be user-specific. Despite annoyance, I do not mind setting up a new account, but before I want to see if anyone can offer any suggestions. Thanks.