ScoopInstaller / Scoop

A command-line installer for Windows.

Home Page:https://scoop.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] Why does the latest node Stable release not have npm

dong-lufei opened this issue · comments

# dong @ lufei in E:\test [13:04:39]
$ scoop reset nodejs-lts
Resetting nodejs-lts (20.13.0).
Linking D:\scoop_user_apps\apps\nodejs-lts\current => D:\scoop_user_apps\apps\nodejs-lts\20.13.0
Persisting bin
Persisting cache
# dong @ lufei in E:\test [13:09:08]
$ node -v
v20.13.0
# dong @ lufei in E:\test [13:09:12]
$ 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 [13:09:15] 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