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.

Getting issue when i was give this npm install -g react-native-cli

See original GitHub issue
Apples-MacBook-Pro:~ Mac$ npm install -g react-native-cli
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! path /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!  { Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!   stack: 'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib/node_modules' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/Mac/.npm/_logs/2018-06-06T09_15_48_372Z-debug.log
Apples-MacBook-Pro:~ Mac$ 

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12

github_iconTop GitHub Comments

17reactions
iamnashdevcommented, Jun 6, 2018

try with sudo : sudo npm install -g react-native-cli

it is installed globally and therefore require permissions

6reactions
ibrahimabcommented, Jun 7, 2018

sudo will solve this, but you should not be using that. This means node was installed in the wrong way. You should try to uninstall node and install it via homebrew. Allowing node sudo access with third party packages is just stupid.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm install -g react-native-cli - node.js - Stack Overflow
npm install -g react-native-cli. Or. delete your nodemodules folder ... And was solved the issue with message: By doing the following steps:
Read more >
Troubleshooting - React Native
These are some common issues you may run into while setting up React Native. If you encounter something that is not listed here, ......
Read more >
react-native - npm
Follow the Getting Started guide. The recommended way to install React Native depends on your project. Here you can find short guides for...
Read more >
Addressing common errors in React Native - LogRocket Blog
Failed to install the app · Unable to load script · React Native run-android command is unrecognized · react-native command not found ·...
Read more >
React Native - Environment Setup - Tutorialspoint
Step 4: Install React Native CLI. You can install react native command line interface on npm, using the install -g react-native-cli command as...
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