简体   繁体   English

带有Chocolatey的install-package从不向路径环境变量添加任何内容

[英]install-package with chocolatey never adds anything to the path environment variable

The command install-package <packagename> -providerName chocolatey never seems to add anything to the PATH envirnoment variable (Windows 10 Build 15063). 命令install-package <packagename> -providerName chocolatey似乎从未向PATH环境变量添加任何内容(Windows 10 Build 15063)。

For example running 例如跑步

install-package docfx -providerName chocolatey
install-package wkthmltopdf -providerName chocolatey

does not do it. 不这样做。 Where as 在哪里

choco install docfx
choco install wkhtmltopdf

does it. 可以。 When I run the latter the commands docfx and wkhtmltopdf are available in the command line. 当我运行后者时,命令docfxwkhtmltopdf在命令行中可用。

So my question is: How is installation different when using the choco command directly compared to install-package and what can I do about this? 所以我的问题是:与直接使用install-package相比,使用choco命令进行install-package有何不同?我该怎么办?

As Rob Reynolds pointed out to me on gitter that package provider is not ready for prime time: 正如罗布·雷诺兹(Rob Reynolds)在烦恼中向我指出的那样,软件包提供商尚未做好准备:

do not use the prototype provider for OneGet/PackageManagement - it's not official, it's a non-fully featured prototype made by MS and it may have security issues. 不要将原型提供程序用于OneGet / PackageManagement-它不是官方的,它是MS制造的功能不全的原型,可能存在安全问题。 See https://github.com/chocolatey/chocolatey-oneget/issues/5#issuecomment-275404099 for details 有关详细信息,请参见https://github.com/chocolatey/chocolatey-oneget/issues/5#issuecomment-275404099

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

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