ScoopInstaller / Main

📦 The default bucket for Scoop.
https://scoop.sh
The Unlicense
1.54k stars 921 forks source link

[Bug]: nodejs@22.0.0: npm script missing #5754

Closed pezcode closed 2 months ago

pezcode commented 2 months ago

Prerequisites

Package Name

nodejs

Expected/Current Behaviour

Installing nodejs (22.0.0) and then running npm produces:

node:internal/modules/cjs/loader:1205
  throw err;
  ^

Error: Cannot find module 'C:\Users\chris\scoop\persist\nodejs\bin\node_modules\npm\bin\npm-cli.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1202:15)
    at Module._load (node:internal/modules/cjs/loader:1027:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:187:14)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Steps to Reproduce

scoop install nodejs
npm

Possible Solution

No fix, but two workarounds:

Scoop and Buckets Version

Current Scoop version:
d285bb08 (HEAD -> master, tag: v0.4.1, origin/master, origin/HEAD) chore(release): Bump to version 0.4.1 (#5924)

'main' bucket:
24cfbb1e5 (HEAD -> master, origin/master, origin/HEAD) rtools: Update to version 4.4.6104.6039 (#5753)

Scoop Config

last_update           scoop_repo                              scoop_branch
-----------           ----------                              ------------
4/26/2024 12:27:33 PM https://github.com/ScoopInstaller/Scoop master

PowerShell Version

Name                           Value
----                           -----
PSVersion                      7.4.2
PSEdition                      Core
GitCommitId                    7.4.2
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Additional Softwares

No response

github-actions[bot] commented 2 months ago

The specified manifest [Bug]: nodejs does not exist in this bucket. Make sure you opened the issue in the correct bucket.