chocolatey

'choco' command not recognized when run as administrator on Windows

╄→гoц情女王★ 提交于 2021-02-15 10:45:56
问题 I installed Chocolatey as per the instructions on the website (https://chocolatey.org/install). The 'choco' command works fine when I run it normally on cmd but returns the following error when run as administrator: C:\WINDOWS\system32>choco install -y wget 7zip.commandline 'choco' is not recognized as an internal or external command, operable program or batch file. The install choco install -y wget 7zip.commandline fails if not run as administrator. How do I fix 'not recognized' error in

Windows 命令行终端 PowerShell 美化计划

▼魔方 西西 提交于 2021-02-15 06:23:07
1. 前言 欢迎加入[ 微信圈子 ] 程序员交流圈 交流编程经验。 作为一个程序员,终端工具是必不可少的。但是 「Windows」 的默认终端实在太丑了,作为一个颜控忍不了。所以必须实施终端改造计划。目前我们都会使用 「PowerShell」 ,所以改造计划就先从它开始。先看看我改造的效果: ❝ 本文涉及的所有命令都在 「管理员模式」 的 「PowerShell」 下执行。 ❞ 2. 安装 Chocolatey 「homebrew」 很多使用 「Mac」 的同学都用过,很方便的软件包管理工具。一行命令就可以安装很多我们需要的开发软件,比如 「Maven」 、 「JDK」 等,命令非常简单,比如我们从软件仓库查找一下 「JDK」 : 安装 「Chocolatey」 的命令为: Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex 3. 改造字体 第一步就是改造字体,默认的 「新宋体」

Chocolatey generated VS 2015 Compiler not found on docker image

天涯浪子 提交于 2021-02-11 12:34:04
问题 I tried to install visual studio 2015 build tools on a Docker Container using the chocolatey packet manager. I need it for a Matlab code gen build operation. The chocolatey steps works fine. But my docker container can't find the compiler. Any Hints? Docker RUN powershell -command choco install -y vcredist140 RUN powershell -command choco install -y vcbuildtools -ia "/Full" Using mex -v -setup I have: Host(WIN10): ... Looking for compiler 'Microsoft Visual C++ 2015 (C)' ... ... Looking for

How to configure Artifactory as a cache for Chocolatey? I get 404 when installing packages

天涯浪子 提交于 2021-02-10 17:57:00
问题 Artifactory version: 6.16.2 rev 61602900, Artifactory Pro license. In Artifactory, I have added a REMOTE repository, with the following settings: Package Type: NuGet Repository Key: chocolatey-remote URL: https://chocolatey.org/ Test: Successfully connected to server Repository Layout: nuget-default Include Patterns: **/* NuGet Download Context Path: api/v2/package NuGet Feed Context Path: api/v2 NuGet v3 Feed URL: (empty) Screenshots: On the host, I have configured Chocolatey sources: choco

How to configure Artifactory as a cache for Chocolatey? I get 404 when installing packages

浪尽此生 提交于 2021-02-10 17:54:34
问题 Artifactory version: 6.16.2 rev 61602900, Artifactory Pro license. In Artifactory, I have added a REMOTE repository, with the following settings: Package Type: NuGet Repository Key: chocolatey-remote URL: https://chocolatey.org/ Test: Successfully connected to server Repository Layout: nuget-default Include Patterns: **/* NuGet Download Context Path: api/v2/package NuGet Feed Context Path: api/v2 NuGet v3 Feed URL: (empty) Screenshots: On the host, I have configured Chocolatey sources: choco

压力测试命令行工具SuperBenchmarker

不羁的心 提交于 2021-02-02 00:35:54
压力测试命令行工具SuperBenchmarker SuperBenchmarker 是ㄧ个开源的类似于Apache ab的压力测试命令行工具。可以在 .NET 4.52+ 或者 .NET Core 2.0+ 平台上运行。 可支持Get、Post、Put、Delete这些调用方式,调用时能指定Concurrent user、Request数、Header template…等。 可以从Github、Chocolatey这两种方式获得。 Github用户可在download目录内取得编译好的程序主文件 Chocolatey使用者可输入下列命令进行下载 cinst SuperBenchmarker 程序的作者是建议用Chocolatey去获得程序主文件,因为放置的程序主文件已经被作者用ILMerge将依赖的组件合并,获得后就可直接使用。 程序的使用方式可直接在命令行下输入sb查看,里面会有程序的使用方式、参数、及简易的使用范例 其中比较重要的参数大概有下列几个 -u 可用来指定要压测的网站或是API -n 可用来指定要压的Request数量 -c 可用来指定Concurrent Request数量 -m 可用来指定要使用的HTTP Method -h 可用来指定要显示HTTP Header -q 可用来指定要显示Cookie 所以我们要发送1000个Request去测试腾讯网的话

Why does Chocolatey not install on this Vagrant box?

旧街凉风 提交于 2021-01-28 20:43:51
问题 I've installed chocolatey on my host machine (windows) using the powershell provision: Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) This is all fine and choco works on the host machine, but when I try to install it via vagrant ssh in the VM, it doesn't work at all. I've tried using scripts and adding them into the vagrantfile but with no luck. How can I get chocolatey on my windows vagrant VM? My vagrantfile # -*- mode: ruby -*- #

How to fix 'npm ERR! Cannot read property 'startsWith' of null'

核能气质少年 提交于 2021-01-28 04:52:01
问题 I am creating my first react-native app. I am attempting to install the react-native command line interface as shown here. I keep getting an error when I type the command to initiate the react-native command line OS: Windows 10 Node: 10.15.3 npm: 6.4.1 I am not behind a proxy I have removed the http and https environment variables Updating node and npm creates a different error as shown here Here's the error C:\>npm install -g react-native-cli npm ERR! Cannot read property 'startsWith' of

How to configure Chocolatey to use a corporate proxy?

霸气de小男生 提交于 2021-01-27 02:37:30
问题 I'm having trouble installing Chocolatey packages from behind a corporate proxy. Internet Explorer is correctly configured but I'm having issues getting it to work through Powershell. I can use the Web-Client to download pages e.g. Microsoft.com, but ultimately Chocolatey fails to download packages with the prompt "Please provide proxy credentials:" which will not accept my domain login as being valid. Sometimes I just get the error "Exception calling "DownloadFile" with "2" argument(s): "The

How to configure Chocolatey to use a corporate proxy?

梦想与她 提交于 2021-01-27 02:36:34
问题 I'm having trouble installing Chocolatey packages from behind a corporate proxy. Internet Explorer is correctly configured but I'm having issues getting it to work through Powershell. I can use the Web-Client to download pages e.g. Microsoft.com, but ultimately Chocolatey fails to download packages with the prompt "Please provide proxy credentials:" which will not accept my domain login as being valid. Sometimes I just get the error "Exception calling "DownloadFile" with "2" argument(s): "The