[英]Permission access error while installing Firebase tools/CLI
I am trying to download Firebase CLI in the terminal by entering npm install -g firebase-tools
and I get the error below, ( i have also tried sudo npm install -g firebase-tools
to no avail). 我试图通过输入
npm install -g firebase-tools
在终端中下载Firebase CLI,但出现以下错误,(我也尝试了sudo npm install -g firebase-tools
无效)。 Who can see what is going wrong? 谁能看到出什么问题了?
Bens-MBP:Grapevine2019 benpalmer$ npm install -g firebase-tools npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/firebase-tools npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules npm ERR!
Bens-MBP:Grapevine2019 benpalmer $ npm install -g firebase-tools npm WARN checkPermissions缺少对/ usr / local / lib / node_modules / firebase-tools npm WARN checkPermissions缺少对/ usr / local / lib / node_modules的写权限npm ERR ! path /usr/local/lib/node_modules/firebase-tools npm ERR!
路径/ usr / local / lib / node_modules / firebase-tools npm错误! code EACCES npm ERR!
代码EACCES npm ERR! errno -13 npm ERR!
errno -13 npm错误! syscall access npm ERR!
syscall访问npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/firebase-tools' npm ERR!
错误:EACCES:权限被拒绝,访问'/ usr / local / lib / node_modules / firebase-tools'npm ERR! { Error: EACCES: permission denied, access '/usr/local/lib/node_modules/firebase-tools' npm ERR!
{错误:EACCES:权限被拒绝,访问'/ usr / local / lib / node_modules / firebase-tools'npm ERR! stack: 'Error: EACCES: permission denied, access \\'/usr/local/lib/node_modules/firebase-tools\\'', npm ERR!
堆栈:'错误:EACCES:权限被拒绝,访问\\'/ usr / local / lib / node_modules / firebase-tools \\'',npm ERR! errno: -13, npm ERR!
errno:-13,npm错误! code: 'EACCES', npm ERR!
代码:“ EACCES”,npm错误! syscall: 'access', npm ERR!
syscall:“访问”,npm错误! path: '/usr/local/lib/node_modules/firebase-tools' } npm ERR!
路径:'/ usr / local / lib / node_modules / firebase-tools'} npm ERR! npm ERR!
npm ERR! Please try running this command again as root/Administrator.
请尝试以root / Administrator身份再次运行此命令。
npm ERR!
npm ERR! A complete log of this run can be found in: npm ERR!
可以在以下位置找到该运行的完整日志:npm ERR! /Users/benpalmer/.npm/_logs/2018-05-26T11_52_59_346Z-debug.log Bens-MBP:Grapevine2019 benpalmer$
/Users/benpalmer/.npm/_logs/2018-05-26T11_52_59_346Z-debug.log Bens-MBP:Grapevine2019 benpalmer $
You could try running this command as an administrator, or check the documentations from npm about preventing permission errors. 您可以尝试以管理员身份运行此命令,或者查看npm中的文档以防止权限错误。 https://docs.npmjs.com/getting-started/fixing-npm-permissions
https://docs.npmjs.com/getting-started/fixing-npm-permissions
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.