简体   繁体   English

如何在没有管理员权限的情况下运行 Heroku CLI?

[英]How to run Heroku CLI without administrator rights?

I installed Heroku CLI with the Windows 64-bit installer found here .我安装了 Heroku CLI 和 Windows 64 位安装程序在这里找到 Administrator rights were required to install it.安装它需要管理员权限。

Heroku CLI runs fine when logged in as administrator: screenshot 1以管理员身份登录时,Heroku CLI 运行良好:截图 1

C:\> heroku version
heroku/7.53.0 win32-x64 node-v12.21.0

I cannot run Heroku CLI from a standard non-administrator account: screenshot 2我无法从标准非管理员帐户运行 Heroku CLI:屏幕截图 2

C:\> heroku version
'heroku' is not recognized as an internal or external command,
operable program or batch file.

How do I run Heroku CLI without administrator rights?如何在没有管理员权限的情况下运行 Heroku CLI?

You have to go to control panel then user account then enter image description here change my environment variables您必须 go 到控制面板然后用户帐户然后在此处输入图像描述更改我的环境变量

enter image description here在此处输入图像描述

then select path then tap edit finally add a new one by pressing new then type or browse the /heroku/bin file directory wherever you installed it then press ok for all the menus then open a new terminal/powershell/commandprompt heroku should work然后 select 路径然后点击编辑最后通过按 new 添加一个新然后键入或浏览 /heroku/bin 文件目录,无论您安装它然后按确定所有菜单然后打开一个新终端/powershell/commandprompt heroku 应该工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM