操作错误:EACCES:权限被拒绝

时间:2021-02-08 14:04:30

标签: macos npm vercel

尝试安装 npm i -g vercel 以部署我的网站,但在设置时出错,请帮忙,谢谢

命令 -
npm i -g vercel

错误 -

npm ERR! code EACCES
npm ERR! syscall symlink
npm ERR! path ../lib/node_modules/vercel/dist/index.js
npm ERR! dest /usr/local/bin/vercel
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, symlink '../lib/node_modules/vercel/dist/index.js' -> '/usr/local/bin/vercel'
npm ERR!  [OperationalError: EACCES: permission denied, symlink '../lib/node_modules/vercel/dist/index.js' -> '/usr/local/bin/vercel'] {
npm ERR!   cause: [Error: EACCES: permission denied, symlink '../lib/node_modules/vercel/dist/index.js' -> '/usr/local/bin/vercel'] {
npm ERR!     errno: -13,
npm ERR!     code: 'EACCES',
npm ERR!     syscall: 'symlink',
npm ERR!     path: '../lib/node_modules/vercel/dist/index.js',
npm ERR!     dest: '/usr/local/bin/vercel'
npm ERR!   },
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'symlink',
npm ERR!   path: '../lib/node_modules/vercel/dist/index.js',
npm ERR!   dest: '/usr/local/bin/vercel'
npm ERR! }
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.

0 个答案:

没有答案