Trouble Shooting ~ NPM - rohit120582sharma/Documentation GitHub Wiki

EACCES

Problem

npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'

Solution

It is permission denied error (in iOS/Mac)

Use sudo (superhero) prefix for permission



ENOTFOUND

Problem

error code ENOTFOUND
18 error errno ENOTFOUND
19 error network request to https://registry.npmjs.org/create-react-native-app failed, reason: getaddrinfo ENOTFOUND proxy.corp.globant.com proxy.corp.globant.com:3128
20 error network This is a problem related to network connectivity.
20 error network In most cases you are behind a proxy or have bad network settings.
20 error network
20 error network If you are behind a proxy, please make sure that the
20 error network 'proxy' config is set properly.  See: 'npm help config'

Solution

clear/comment the below code from C:\Users\<user-name>\.npmrc file

proxy=http://proxy.corp.globant.com:3128/
https-proxy=http://proxy.corp.globant.com:3128
⚠️ **GitHub.com Fallback** ⚠️