-
-
Notifications
You must be signed in to change notification settings - Fork 965
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
nodejs@22.0.0: npm script missing #5755
Comments
Same issue here |
This line introduces the error: Line 33 in f0aa6fd
Possible Solution:
|
This seems like a bug in node. As a workaround, using
Or you could add this to $npmprefixclijs="$npmprefix/node_modules/npm/bin/npm-cli.js"
+# Fall back to using npm from the node dir if it doesn't exist in the prefix dir
+if (-not (test-path $npmprefixclijs)) {
+ $npmprefixclijs = "$nodedir/node_modules/npm/bin/npm-cli.js"
+} which also seems to work
Seems like this requires a fix in node though. Setting the node prefix path to point to a persisted path seems like the right thing for the scoop package to be doing. |
It's a npm's bug, see nodejs/node#52682, you may try workarounds mentioned above (or manually remove |
Prerequisites
Package Name
nodejs
Expected/Current Behaviour
Installing nodejs (22.0.0) and then running npm produces:
Steps to Reproduce
Possible Solution
No fix, but two workarounds:
scoop install nodejs@21.7.3
Scoop and Buckets Version
Scoop Config
PowerShell Version
Additional Softwares
No response
The text was updated successfully, but these errors were encountered: