nodejs / help

:sparkles: Need help with Node.js? File an Issue here. :rocket:
1.44k stars 276 forks source link

npm command error #4423

Closed RobloxExecutorV3 closed 1 week ago

RobloxExecutorV3 commented 1 week ago

Node.js Version

v16.20.2

NPM Version

v1.1.1

Operating System

Linux 95aec911-63b8-4b35-a33b-dda6ec5210cb 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 x86_64 x86_64 GNU/Linux

Subsystem

Other

Description

when i execute command npm appear error node:internal/modules/cjs/loader:1031 throw err; ^ Error: Cannot find module '/usr/bin/npm' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15) at Function.Module._load (node:internal/modules/cjs/loader:873:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:22:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }

Minimal Reproduction

No response

Output

No response

Before You Submit

RedYetiDev commented 1 week ago

Node.js v16 has reached LTS, and npm v1.1.1 does not exist. If you can reproduce with the latest versions of the tools, please open a new issue.