Use windows10 in powershell command of choco

choco: Can not "choco" item identifies the name of a cmdlet, function, script file or run a program. Please check the spelling of the name, if you include a path, make sure the path being
correct, and then try again.
Location by: Character 1: 1
+ Choco the install NodeJS
+ ~~~~~
+ CategoryInfo: ObjectNotFound: (Choco: String) [], CommandNotFoundException
+ FullyQualifiedErrorId: CommandNotFoundException

 

Solution: Start administrator mode powershell, and then enter 
iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex 
command on it

 

Guess you like

Origin www.cnblogs.com/godlove/p/11205242.html