question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

'react-native link' unrecognized

See original GitHub issue

Started with a new project: react-native init appName cd appName Verified that react-native link works. Successful Added react-native-ble-plx: npm install --save react-native-ble-plx Tried react-native link, receive error: “Command link unrecognized. Make sure that you have run npm install and that you are inside a react-native project.”

“dependencies”: { “react”: “16.0.0-alpha.12”, “react-native”: “0.45.1”, “react-native-ble-plx”: “^0.6.0” }

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:33 (3 by maintainers)

github_iconTop GitHub Comments

169reactions
inevcommented, Jun 29, 2017

I have the same issue. I was able to get around it by deleting node_modules and typing yarn.

94reactions
jonrhcommented, Oct 25, 2017

Fell victim to this. My mistake was that I ran react-native link inside the wrong folder. I was in the android/ folder. For react-native link to work you need to be located at the root of your React Native project.

This is because the command react-native only has the command init available globally. All other commands, for example link, rely on the React Native version you have installed in node_modules.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unrecognized command "link" when linking fonts in react native
Trying to link custom fonts in a react native project, when using npx react-native link I get an error saying Unrecognized command "link"....
Read more >
[Solved] Unrecognized Command "link" When Linking Fonts In ...
Unrecognized Command " link " When Linking Fonts In React Native. Solve react - native -vector-icons Is Not Working ? Let's Solve. React...
Read more >
error Unrecognized command "link"., install google fonts - Reddit
i can't install any google font, how i can fix that?
Read more >
Fix react-native link issue - Medium
Command `link` unrecognized. Make sure that you have run `npm install` and that you are inside a react-native project. Google to the rescue!...
Read more >
react-native link command not found - You.com
To solve this problem, the solution is simple just install react-native-cli using the following command. npm install -g react-native-cli. The command will ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found