Как исправить ошибку CLI EACCES в пробке - PullRequest
0 голосов
/ 28 марта 2019

Когда я просто даю команду для установки пробела телефона в терминале (mac), там написано EACCES error code.

запустите команду для установки pahonegap в терминале, npm install -g phonegap

npm install -g phonegap
npm ERR! path ../lib/node_modules/phonegap/bin/phonegap.js
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall symlink
npm ERR! Error: EACCES: permission denied, symlink '../lib/node_modules/phonegap/bin/phonegap.js' -> '/usr/local/bin/phonegap'
npm ERR!  { Error: EACCES: permission denied, symlink '../lib/node_modules/phonegap/bin/phonegap.js' -> '/usr/local/bin/phonegap'
npm ERR!   cause: 
npm ERR!    { Error: EACCES: permission denied, symlink '../lib/node_modules/phonegap/bin/phonegap.js' -> '/usr/local/bin/phonegap'
npm ERR!      errno: -13,
npm ERR!      code: 'EACCES',
npm ERR!      syscall: 'symlink',
npm ERR!      path: '../lib/node_modules/phonegap/bin/phonegap.js',
npm ERR!      dest: '/usr/local/bin/phonegap' },
npm ERR!   stack: 'Error: EACCES: permission denied, symlink \'../lib/node_modules/phonegap/bin/phonegap.js\' -> \'/usr/local/bin/phonegap\'',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'symlink',
npm ERR!   path: '../lib/node_modules/phonegap/bin/phonegap.js',
npm ERR!   dest: '/usr/local/bin/phonegap' }
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/username/.npm/_logs/2019-03-28T04_05_34_325Z-debug.log

необходимо успешно установить разрыв телефона в mac

...