Skip to content

[Bug] After the latest node Stable release, why can't I see npm? #5812

@dong-lufei

Description

@dong-lufei
# dong @ lufei in E:\test [09:18:49]
$ scoop install main/nodejs-lts
Installing 'nodejs-lts' (20.13.0) [64bit] from main bucket
Loading node-v20.13.0-win-x64.7z from cache.
Checking hash of node-v20.13.0-win-x64.7z ... ok.
Extracting node-v20.13.0-win-x64.7z ... done.
Linking D:\scoop_user_apps\apps\nodejs-lts\current => D:\scoop_user_apps\apps\nodejs-lts\20.13.0
Persisting bin
Persisting cache
Running post_install script...
'nodejs-lts' (20.13.0) was installed successfully!
# dong @ lufei in E:\test [09:19:09]
$ node -v
v20.13.0
# dong @ lufei in E:\test [09:19:29]
$ npm -v
node:internal/modules/cjs/loader:1148
  throw err;
  ^

Error: Cannot find module 'D:\scoop_user_apps\persist\nodejs-lts\bin\node_modules\npm\bin\npm-cli.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
    at Module._load (node:internal/modules/cjs/loader:986:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
    at node:internal/main/run_main_module:28:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v20.13.0
# dong @ lufei in E:\test [09:19:32] C:1

Bug Report

Current Behavior

Expected Behavior

Additional context/output

Possible Solution

System details

Windows version: [e.g. 7, 8, 10, 11]
11
OS architecture: [e.g. 32bit, 64bit, arm64]

PowerShell version: [output of "$($PSVersionTable.PSVersion)"]
PowerShell 7.4.2
Additional software: [(optional) e.g. ConEmu, Git]

Scoop Configuration

//# Your configuration here

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions