-
-
Notifications
You must be signed in to change notification settings - Fork 988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: nodejs-lts will no longer update #6467
Comments
Same problem trying to upgrade to 22.13.1, and when trying to |
Can you do a fresh install (fully remove nodejs then reinstall) ? Remove-Item: C:\Users\havremunken\scoop\apps\scoop\current\lib\install.ps1:842
Line |
842 | Remove-Item $currentdir -Recurse -Force -ErrorAction Stop
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot remove item C:\Users\havremunken\scoop\apps\nodejs-lts\current\bin: Access to the path 'C:\Users\havremunken\scoop\apps\nodejs-lts\current\bin' is denied. |
@Ra2-IFV Sorry, I should have included that information; I have tried both using sudo (gsudo) and running the Terminal app as an admin. I get the same issue:
For what little it is worth, I can go to that folder in Windows Explorer (running unprivileged), but it is empty at this point. As for uninstalling, I get similar issues when trying to uninstall via scoop:
So I guess the next option is the brutal way, and just completely purge C:\users\havremunken\scoop\apps\nodejs-lts\ from the file system? |
I have renamed the mentioned directory to nodejs-lts-broken, and done another However, I am fairly sure I did nothing to mess with the file system myself to cause this to happen originally, besides running regular |
Yes, I just want you to delete all the files manually (backup files first if needed), then update buckets and do the installation. seems to be a problem with manifests, hope this can help
…On February 1, 2025 11:13:08 AM UTC, Rune Jacobsen ***@***.***> wrote:
@Ra2-IFV Sorry, I should have included that information; I have tried both using sudo (gsudo) and running the Terminal app as an admin. I get the same issue:
```
sudo scoop update nodejs-lts
nodejs-lts: 22.12.0 -> 22.13.1
Updating one outdated app:
Updating 'nodejs-lts' (22.12.0 -> 22.13.1)
Downloading new version
Loading node-v22.13.1-win-x64.7z from cache
Checking hash of node-v22.13.1-win-x64.7z ... ok.
Invoke-HookScript: C:\Users\havremunken\scoop\apps\scoop\current\libexec\scoop-update.ps1:340
Line |
340 | … -HookScript -HookType 'pre_uninstall' -Manifest $old_manifest -Arch $ …
| ~~~~~~~~~~~~~
| Cannot validate argument on parameter 'Manifest'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
Uninstalling 'nodejs-lts' (22.12.0)
Invoke-HookScript: C:\Users\havremunken\scoop\apps\scoop\current\lib\install.ps1:710
Line |
710 | Invoke-HookScript -HookType $type -Manifest $Manifest -ProcessorA …
| ~~~~~~~~~
| Cannot validate argument on parameter 'Manifest'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
Unlinking ~\scoop\apps\nodejs-lts\current
Remove-Item: C:\Users\havremunken\scoop\apps\scoop\current\lib\install.ps1:842
Line |
842 | Remove-Item $currentdir -Recurse -Force -ErrorAction Stop
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot remove item C:\Users\havremunken\scoop\apps\nodejs-lts\current\bin: Access to the path 'C:\Users\havremunken\scoop\apps\nodejs-lts\current\bin' is denied.
```
For what little it is worth, I can go to that folder in Windows Explorer (running unprivileged), but it is empty at this point.
As for uninstalling, I get similar issues when trying to uninstall via scoop:
```
sudo scoop uninstall nodejs-lts
Uninstalling 'nodejs-lts' (22.12.0).
Invoke-HookScript: C:\Users\havremunken\scoop\apps\scoop\current\libexec\scoop-uninstall.ps1:62
Line |
62 | … voke-HookScript -HookType 'pre_uninstall' -Manifest $manifest -Arch $ …
| ~~~~~~~~~
| Cannot validate argument on parameter 'Manifest'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.
Invoke-Installer: C:\Users\havremunken\scoop\apps\scoop\current\libexec\scoop-uninstall.ps1:77
Line |
77 | … $dir -Manifest $manifest -ProcessorArchitecture $architecture -Uninst …
| ~~~~~~~~~~~~~
| Cannot validate argument on parameter 'ProcessorArchitecture'. The argument "" does not belong to the set "32bit,64bit,arm64" specified by the ValidateSet attribute. Supply an argument
| that is in the set and then try the command again.
Unlinking ~\scoop\apps\nodejs-lts\current
Remove-Item: C:\Users\havremunken\scoop\apps\scoop\current\lib\install.ps1:842
Line |
842 | Remove-Item $currentdir -Recurse -Force -ErrorAction Stop
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Cannot remove item C:\Users\havremunken\scoop\apps\nodejs-lts\current\bin: Access to the path 'C:\Users\havremunken\scoop\apps\nodejs-lts\current\bin' is denied.
```
So I guess the next option is the brutal way, and just completely purge C:\users\havremunken\scoop\apps\nodejs-lts\ from the file system?
--
Reply to this email directly or view it on GitHub:
#6467 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
uhh I guess it's safe to remove that folder since scoop persists user data in a different directory.
but if you want to fix it, try copying the manifest file from the bucket to that folder - there should be a json file named "manifest.json", just replace it the same name.
Sometimes it just fails for no reason, there's nothing we can do :)
…On February 1, 2025 11:17:57 AM UTC, Rune Jacobsen ***@***.***> wrote:
I have renamed the mentioned directory to nodejs-lts-broken, and done another `scoop install nodejs-lts` - at the moment, I have a working node v22.13.1 install. So that is good.
However, I am fairly sure I did nothing to mess with the file system myself to cause this to happen originally, besides running regular `scoop update *` to keep up to date. I still have my nodejs-lts-broken folder if it could be useful for forensics, otherwise I guess this will just go down in history as an unresolved and now irrelevant mystery. :)
--
Reply to this email directly or view it on GitHub:
#6467 (comment)
You are receiving this because you were mentioned.
Message ID: ***@***.***>
|
Prerequisites
Package Name
nodejs-lts
Expected/Current Behaviour
After a long and happy relationship with
nodejs-lts
, it recently started refusing to update. Output of update attempt in "Steps to Reproduce".Steps to Reproduce
Possible Solution
Sorry, no.
Scoop and Buckets Version
Scoop Config
PowerShell Version
Additional Softwares
Running in Windows Terminal version 1.21.3231.0.
The text was updated successfully, but these errors were encountered: