-
-
Notifications
You must be signed in to change notification settings - Fork 34.6k
Description
- Version:v8.12.0
- Platform:Darwin devnullmacbook.local 18.0.0 Darwin Kernel Version 18.0.0: Wed Aug 22 20:13:40 PDT 2018; root:xnu-4903.201.2~1/RELEASE_X86_64 x86_64
- Subsystem:
Hello i try tu use the command npm install -g npm@latest but i get this :
npm ERR! path /usr/local/bin/npm
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall unlink
npm ERR! Error: EACCES: permission denied, unlink '/usr/local/bin/npm'
npm ERR! { Error: EACCES: permission denied, unlink '/usr/local/bin/npm'
npm ERR! cause:
npm ERR! { Error: EACCES: permission denied, unlink '/usr/local/bin/npm'
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'unlink',
npm ERR! path: '/usr/local/bin/npm' },
npm ERR! stack: 'Error: EACCES: permission denied, unlink '/usr/local/bin/npm'',
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'unlink',
npm ERR! path: '/usr/local/bin/npm' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/luca/.npm/_logs/2018-10-18T11_09_17_750Z-debug.log
can u please help me to make npm work better thx