Closed goyalyashpal closed 6 months ago
using double quotes also makes the variables to be correctly parsed/highlighted :)
also, i just noticed that it doesn't create any directory at the -ScoopGlobalDir
option. is that expected?
the reason that's special is 'cz that directory required admin permissions, and i don't know how to give those permissions at CLI.
No directory will be created when performing the installation of Scoop, the value of the -ScoopGlobalDir
option you specified will be written to the config file of Scoop (located in <YOUR HOME DIR>\.config\scoop\config.json
by default) and it will be used when you install apps globally, the directory will be created at that time.
i don't know how to give those permissions at CLI.
Either start up a powershell session with Run as Administrator
or install the gsudo
app from the main bucket and type sudo scoop ...
Description
Installation Logs
installation logs
```console > $VerbosePreference='Continue' > .\scoop_install.ps1 -ScoopDir '$env:DUF\scoop' -ScoopGlobalDir '$env:DPF\scoop_global' VERBOSE: -------- PSBoundParameters -------- VERBOSE: [ScoopDir, $env:DUF\scoop] VERBOSE: [ScoopGlobalDir, $env:DPF\scoop_global] VERBOSE: -------- Environment Variables -------- VERBOSE: $env:USERPROFILE: C:\Users\... VERBOSE: $env:ProgramData: C:\ProgramData VERBOSE: $env:SCOOP: VERBOSE: $env:SCOOP_CACHE: VERBOSE: $env:SCOOP_GLOBAL: VERBOSE: -------- Selected Variables -------- VERBOSE: SCOOP_DIR: $env:DUF\scoop VERBOSE: SCOOP_CACHE_DIR: $env:DUF\scoop\cache VERBOSE: SCOOP_GLOBAL_DIR: $env:DPF\scoop_global VERBOSE: SCOOP_CONFIG_HOME: C:\Users\...\.config Initializing... Downloading... VERBOSE: Cloning https://github.com/ScoopInstaller/Scoop.git to $env:DUF\scoop\apps\scoop\current fatal: could not create leading directories of '$env:DUF\scoop\apps\scoop\current': Invalid argument WARNING: Cloning failed. Falling back to downloading zip files. New-Item : Cannot find drive. A drive with the name '$env' does not exist. At ...\scoop_install.ps1:605 char:13 + New-Item -Type Directory $SCOOP_APP_DIR | Out-Null + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: ($env:String) [New-Item], DriveNotFoundException + FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.NewItemCommand ```powershell context
```console > $PSVersionTable Name Value ---- ----- PSVersion 5.1.19041.4046 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} BuildVersion 10.0.19041.4046 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 ```