当我简单地在终端(mac)中给出用于安装电话间隙的命令时,它会显示EACCES错误代码。
运行命令在终端npm install -g phonegap
中安装pahonegap
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中成功安装手机间隙