guarinogabriel / Mac-CLI

 macOS command line tool for developers – The ultimate tool to manage your Mac. It provides a huge set of command line commands that automatize the usage of your Mac.
MIT License
8.86k stars 333 forks source link

Warning permission NPM #130

Closed ChristopheChirat closed 7 years ago

ChristopheChirat commented 7 years ago

npm

WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm /usr/local/lib └── npm@4.5.0

npm ERR! path /usr/local/lib/node_modules/npm 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' npm ERR! { Error: EACCES: permission denied, access '/usr/local/lib/node_modules/npm' npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/local/lib/node_modules/npm' } 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/{user_name}/.npm/_logs/2017-04-30T18_20_01_791Z-debug.log

ChristopheChirat commented 7 years ago

The problem seems fixed with an update of the rights on the directory whose owner was "nobody" 2017-05-03_08-29-20