osx - NativeScript installation issue on MAC -


trying install nativescript on mac machine, ran following command:

npm install -g nativescript 

installation fails following error:

npm err! error: eacces: permission denied, open 'npm-debug.log.3677839881' npm err!     @ error (native) npm err!  { [error: eacces: permission denied, open 'npm-debug.log.3677839881'] npm err!   errno: -13, npm err!   code: 'eacces', npm err!   syscall: 'open', npm err!   path: 'npm-debug.log.3677839881' } 

would appreciate resolve it.

this permission error, have tried sudo npm install -g nativescript , entering password? give command root user (admin) privileges, these required install global npm modules default.

there approach, change global npm folder doesn't require elevated privileges:

sudo chown -r $user /usr/local 

Comments