- 2022.03.28 Monday
- スポンサーサイト
-
一定期間更新がないため広告を表示しています
- | スポンサードリンク | - | | - | - | pookmark |
- 2017.02.11 Saturday
- Windows版homebrew的存在、Chocolateyを使うのエラー(3) - Chocolateyのインストール
-
http://byoma.hatenablog.com/entry/2016/08/21/124259
%SystemRoot%¥syswow64¥WindowsPowerShell¥v1.0¥powershell.exe
%windir%¥syswow64¥WindowsPowerShell¥v1.0¥PowerShell_ISE.exe
%windir%¥system32¥WindowsPowerShell¥v1.0¥PowerShell_ISE.exe
%SystemRoot%¥system32¥WindowsPowerShell¥v1.0¥powershell.exe
C:¥Windows¥system32¥WindowsPowerShell¥v1.0¥powershell.exe
で
PS C:¥Windows¥system32> Set-ExecutionPolicy -ExecutionPolicy Unrestricted
実行ポリシーの変更
実行ポリシーは、信頼されていないスクリプトからの保護に役立ちます。実行ポリシーを変更すると
、about_Execution_Policies のヘルプ トピック
(http://go.microsoft.com/fwlink/?LinkID=135170)
で説明されているセキュリティ上の危険にさらされる可能性があります。実行ポリシーを変更します
か?
[Y] はい(Y) [A] すべて続行(A) [N] いいえ(N) [L] すべて無視(L) [S] 中断(S) [?] ヘルプ
(既定値は "N"):Y
PS C:¥Windows¥system32> iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
Getting latest version of the Chocolatey package for download.
Getting Chocolatey from https://chocolatey.org/api/v2/package/chocolatey/0.10.3.
Downloading7-Zip
commandline tool
prior
to extraction.
ExtractingC:¥Users¥whaison¥AppData¥Local¥Temp¥chocolatey¥chocInstall¥chocolatey.zip to
C:¥Users¥whaison¥AppData¥Local¥Temp¥chocolatey¥chocInstall...
Installing chocolatey on this machine
Creating ChocolateyInstallas an
environment variable (targeting 'Machine')
SettingChocolateyInstall to
C:¥ProgramData¥chocolatey
WARNING: It's very likely you will need to close and reopen your shell
before you can use choco.
Restricting write permissions to Administrators
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:¥ProgramData¥chocolatey¥lib'
(i.e. C:¥ProgramData¥chocolatey¥lib¥yourPackageName).
A shim file for the command line goes to 'C:¥ProgramData¥chocolatey¥bin'
and points to an executable in 'C:¥ProgramData¥chocolatey¥lib¥yourPackageName'.Creating Chocolatey folders if they do not already exist.
WARNING: You can safely ignore errors related to missing log files when
upgrading from a version of Chocolatey less than 0.9.9.
'Batch file could not be found' is also safe to ignore.
'The system cannot find the file specified' - also safe.
PATH environment variable does not have C:¥ProgramData¥chocolatey¥bin in it. Adding...
警告: Not setting tab completion: Profile file does not exist at
'C:¥Users¥whaison¥Documents¥WindowsPowerShell¥Microsoft.PowerShell_profile.ps1'.
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere,command line or powershell by typing choco.
Run choco /?for a
list of functions.
You may need toshut down
and
restart
powershell
and/or consoles
first prior to using choco.
Ensuringchocolatey
commands
are on the path
Ensuringchocolatey.
nupkg
is in the lib folder
PS C:¥Windows¥system32>
ここに入った
C:¥ProgramData¥Chocolatey
の
choco.exe
再起動が必要 - | whaison | PowerShell | 21:42 | comments(0) | - | pookmark |