Cli: react-native link stuck

Created on 14 Jan 2019  路  3Comments  路  Source: react-native-community/cli

Environment

image
image

Description

I've just started a new project and started developing the base classes...
So, I installed react-navigation (using yarn and also npm), and got a error regarding a State, so I've figured out that I was missing a "react-native link".
When I ran this command, It got stuck...
Nothing was shown on terminal.
So, I've added the 'rnpm' assets on package.json to try out if I get something on console, and then after linking the assets it just hanged after:
"rnpm-install info Assets have been successfully linked to your project"

Then, I though I was kinda crazy, and googled tons of times, but no success.
After that, I've created this project "ABACATE" fresh to check if it was something with the new project that I had created before, but unfortunately I THINK that it is a bug. (Could it be a node version problem?) :D
image
image

Full Log here: https://pastebin.com/jm0A4GVC

Reproducible Demo

react-native init YourProjectThatIsGoingToHangOnLink
react-native link

Package.json:

{
"name": "ABACATE",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.6.3",
"react-native": "0.57.8"
},
"devDependencies": {
"babel-jest": "23.6.0",
"jest": "23.6.0",
"metro-react-native-babel-preset": "0.51.1",
"react-test-renderer": "16.6.3"
},
"jest": {
"preset": "react-native"
}
}

REQUEST:

Can you guys please add a more detailed log/verbose on the command "react-native link"?
It will make easier for all of us to trace errors...

Thanks a million!

link windows help wanted

Most helpful comment

--verbose is now available, can you make sure to install latest CLI (v1.9.9) and re-run this?

All 3 comments

Guys, my guess was right.
I've installed NVM4W (Node Version Manager 4 Windows),
Then, I've installed Node v10.15.0 and ran:
_nvm use v10.15.0_
_react-native link_
And the expected behaviour:
image

So now, the bug is reduced to new version of CLI with old Node v8.11.3..

Are you guys able to provide more verbose/log to this command?
It will be helpfull for all of us!

Thanks in advance
Cheers

We're planning on adding --verbose command that should improve it

--verbose is now available, can you make sure to install latest CLI (v1.9.9) and re-run this?

Was this page helpful?
0 / 5 - 0 ratings