Node.js 在mac osx Mojave上安装angular cli 7时出错

Node.js 在mac osx Mojave上安装angular cli 7时出错,node.js,npm,node-gyp,angular-cli-v7,Node.js,Npm,Node Gyp,Angular Cli V7,我在安装时出错angular@cli在节点版本为10.15.3和npm 6.9.0的Mac Osx Mojave 10.14.5上 我还尝试删除并重新安装node和npm,并遵循本文的说明 对于在安装过程中发现此问题的所有人,我已通过安装angular/cli解决了此问题: sudo npm install-g@angular/cli——不安全的perm对于在安装过程中发现此问题的所有人,我通过安装angular/cli解决了此问题: sudo npm安装-g@angular/cli--不安全的

我在安装时出错angular@cli在节点版本为10.15.3和npm 6.9.0的Mac Osx Mojave 10.14.5上

我还尝试删除并重新安装node和npm,并遵循本文的说明


对于在安装过程中发现此问题的所有人,我已通过安装angular/cli解决了此问题:


sudo npm install-g@angular/cli——不安全的perm

对于在安装过程中发现此问题的所有人,我通过安装angular/cli解决了此问题:

sudo npm安装-g@angular/cli--不安全的perm

npm install -g @angular/cli 
sudo npm install -g @angular/cli 

npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/@angular/cli
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/@angular/cli/node_modules
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/@angular
npm ERR! path /usr/local/lib/node_modules/@angular/cli
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/@angular/cli'
npm ERR!  { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules/@angular/cli']
npm ERR!   stack:
npm ERR!    'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules/@angular/cli\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib/node_modules/@angular/cli' }
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/fabiodigiuseppe/.npm/_logs/2019-05-26T15_39_28_869Z-debug.log