react-native: react-native init stuck
When i make a project with
react-native init AwesomeProject --verbose
i have this message:
npm WARN react-native@0.33.0 requires a peer of react@~15.3.1 but none was installed.
npm verb exit [ 0, true ]
npm info ok
and then the process hangs there forever
in my project folder i have npm_modules folder and the file package.json like this:
{
"name": "AwesomeProject",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start"
},
"dependencies": {
"react-native": "0.33.0"
}
}
if i try to
react-native run-ios
the process hangs from the beginning and writes nothing as output, not even an error
i’m on macOS react-native 0.33
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16
I found the react-native script will run watchman sometimes. When I run
watchman version
It would hang.After re-install watchman, everything is ok.
rm -rf /usr/local/var/run/watchman/ && brew uninstall watchman && brew install watchman
Actually yes!! Watchman is the issue. It works like a charm now. @feisan @sun2rise
@feisan you really changed my monday morning!! thank you, it works!!!
rm -rf ~/.npm does not work for me neither… this begins to be frustrating…
Same issue on osx 10.11.6, rn 0.33.0.
Reboot after Security Update 2016-001 installed.
Above rm -rf ~/.npm does not work for me.
Can start old project and init new project IF running as root. Cannot start old project or init new project running as user.