ScoopInstaller / Scoop

A command-line installer for Windows.
https://scoop.sh
Other
20.85k stars 1.39k forks source link

[Bug] scoop install nvm@1.1.12: nvm not working #5772

Closed String10 closed 8 months ago

String10 commented 8 months ago

Bug Report

Current Behavior

~ ❯ scoop info nvm

Name        : nvm
Description : A node.js version management utility for Windows.
Version     : 1.1.12
Bucket      : main
Website     : https://github.com/coreybutler/nvm-windows
License     : MIT
Updated at  : 2023/11/23 04:25:23
Updated by  : github-actions[bot]
Installed   : 1.1.12
Binaries    : nvm.exe
Environment : NVM_HOME = <root>
              NVM_SYMLINK = <root>\nodejs\nodejs
Path Added  : <root>\nodejs\nodejs
Notes       : You'll need to restart powershell/cmd to have it reload Environment Variables so nvm will work correctly

~ ❯ nvm use 20.10.0
exec: "elevate.cmd": executable file not found in %PATH%:

Expected Behavior

nvm use xx.xx.xx runs well.

Additional context/output

One guy find out it's a scoop bug but but not nvm-windows. FYI, here's the bug in nvm-windows.

(what maintainer says): I'm closing this because it appears to be a problem with the Scoop installer (which we do not maintain). elevate.vbs is shipped with the installer/updater.

Possible Solution

recovering the missing file.

System details

Windows version: 11

OS architecture: 64bit

PowerShell version: [output of "$($PSVersionTable.PSVersion)"]

~ ❯ $($PSVersionTable.PSVersion)

Major  Minor  Patch  PreReleaseLabel BuildLabel
-----  -----  -----  --------------- ----------
7      4      0

Additional software: [(optional) e.g. ConEmu, Git]

Scoop Configuration

//# Your configuration here
HUMORCE commented 8 months ago

Duplicate of https://github.com/ScoopInstaller/Main/issues/5311