windows下安裝scoop


scoop是windows下的包管理工具,類似與linux下的yum和python的pip。 scoop可以在windows下方便的進行軟件的管理,尤其是對開發者提供了很大的遍歷。

cmd下執行如下紅色命令:

C:\Users\acer>powershell    #進入到powershell
Windows PowerShell
版權所有 (C) Microsoft Corporation。保留所有權利。

PS C:\Users\acer> iex (new-object net.webclient).downloadstring('https://raw.githubusercontent.com/lukesampson/scoop/master/bin/install.ps1')
Initializing...
Downloading scoop...
Extracting...
Creating shim...
Downloading main bucket...
Extracting...
Adding ~\scoop\shims to your path.
'lastupdate' has been set to '2019-09-13T15:17:01.1502322+08:00'
Scoop was installed successfully!
Type 'scoop help' for instructions.

特別說明:

1.以上安裝方式scoop的默認路徑為:C:\Users\acer\scoop

2.網上大多數教程安裝命令是:iex (new-object net.webclient).downloadstring('https://get.scoop.sh'),但是我使用該命令安裝時,安裝失敗,報錯類似

用“1”個參數調用“DownloadString”時發生異常:“操作超時”
所在位置 行:1 字符: 1
+ iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

網上尋找解決辦法,發現 瀏覽器訪問  https://get.scoop.sh 是鏈接到 https://raw.githubusercontent.com/lukesampson/scoop/master/bin/install.ps1,后來把安裝命令改為

iex (new-object net.webclient).downloadstring('https://raw.githubusercontent.com/lukesampson/scoop/master/bin/install.ps1')  就安裝成功了


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM