window 10 mounted allure

1, enter cmd, using powershell

C: \ the Users \ CZY> PowerShell 
Windows PowerShell 
Copyright (C) Microsoft Corporation. all rights reserved.

2, view the version of powershell, scoop powershell version requires at least 5 or higher

PS C:\Users\CZY> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      5.1.17134.765
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17134.765
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

3, download and install scoop

PS C:\Users\CZY> iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
PowerShell requires an execution policy of 'RemoteSigned' to run Scoop.
To make this change please run:
'Set-ExecutionPolicy RemoteSigned -scope CurrentUser'
#若执行iex命令时有上面的提示,根据提示操作

PS C:\Users\CZY> Set-ExecutionPolicy RemoteSigned -scope CurrentUser

PS C:\Users\CZY> iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
Initializing...
Downloading scoop...
Extracting...
Creating shim...
Downloading main bucket...
Extracting...
Adding ~\scoop\shims to your path.
'lastupdate' has been set to '2019-07-18T23:23:48.8724096+08:00'
Scoop was installed successfully!
Type 'scoop help' for instructions.

4, to see whether the installation is complete scoop

PS C:\Users\CZY> scoop help
Usage: scoop <command> [<args>]
...

5, the installation allure

PS C:\Users\CZY> scoop install allure
Installing 'allure' (2.12.1) [64bit]
allure-commandline-2.12.1.zip (16.3 MB) [=====================================================================] 100%
Checking hash of allure-commandline-2.12.1.zip ... ok.
Extracting allure-commandline-2.12.1.zip ... done.
Linking ~\scoop\apps\allure\current => ~\scoop\apps\allure\2.12.1
Creating shim for 'allure'.
'allure' (2.12.1) was installed successfully!

 

Guess you like

Origin www.cnblogs.com/chenri/p/11210808.html