gpt4 book ai didi

macos - 安装 Firebase 工具/CLI 时出现权限访问错误

转载 作者:行者123 更新时间:2023-12-05 06:33:48 24 4
gpt4 key购买 nike

我正在尝试通过输入在终端中下载 Firebase CLInpm install -g firebase-tools 并且出现以下错误(我也尝试过 sudo npm install -g firebase-tools 但无济于事)。谁能看出哪里出了问题?

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! path /usr/local/lib/node_modules/firebase-tools npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/firebase-tools' npm ERR! { Error: EACCES: permission denied, access '/usr/local/lib/node_modules/firebase-tools' npm ERR! stack: 'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules/firebase-tools\'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/local/lib/node_modules/firebase-tools' } npm ERR! npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/benpalmer/.npm/_logs/2018-05-26T11_52_59_346Z-debug.log Bens-MBP:Grapevine2019 benpalmer$

最佳答案

您可以尝试以管理员身份运行此命令,或者查看 npm 中有关防止权限错误的文档。 https://docs.npmjs.com/getting-started/fixing-npm-permissions

关于macos - 安装 Firebase 工具/CLI 时出现权限访问错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50542510/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com