Getting issue when i was give this npm install -g react-native-cli
See original GitHub issueApples-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:
- Created 5 years ago
- Comments:12
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
try with sudo : sudo npm install -g react-native-cli
it is installed globally and therefore require permissions
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.