windows10中powershell的choco命令的使用

choco : 无法将“choco”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正
确,然后再试一次。
所在位置 行:1 字符: 1
+ choco install nodejs
+ ~~~~~
+ CategoryInfo : ObjectNotFound: (choco:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

 

解决方法:管理员方式启动powershell,然后输入
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
命令就可以了

 

posted @ 2019-07-18 09:53  yile  阅读(5628)  评论(0编辑  收藏  举报