1.安裝Chocolatey
參考:https:///docs/installation
管理員方式運(yùn)行cmd,運(yùn)行以下命令:
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https:///install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
安裝完成,運(yùn)行以下代碼測(cè)試:
choco list --local-only
顯示類似這樣的就成功了:
choco具體命令參考:https://github.com/chocolatey/choco/wiki/CommandsList
choco list --page=0 --page-size=25 choco search git --source="'https://somewhere/out/there'" choco search bob -s "'https://somewhere/protected'" -u user -p pass
2.安裝node.js
參考:https:///packages/nodejs
以管理員方式打開cmd窗口,運(yùn)行:
choco install nodejs
更新node.js命令:
choco upgrade nodejs
打開新的cmd窗口,輸入:
node -v
會(huì)顯示nodejs的版本,說(shuō)明安裝成功!
其他package參考官方網(wǎng)站:https:///packages
|