I restored it form the backup but i'm getting error when running 'npm install'
[shivamdhaka1200@s4]:<~/domains/chess-backend.shivamdhaka1200.serv00.net/public_nodejs>$ npm i
node:internal/modules/cjs/loader:1143
throw err;
^
Error: Cannot find module '../lib/cli.js'
Require stack:
- /usr/home/shivamdhaka1200/bin/npm
at Module.resolveFilename (node:internal/modules/cjs/loader:1140:15)
at Module.load (node:internal/modules/cjs/loader:981:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:177:18)
at Object.<anonymous> (/usr/home/shivamdhaka1200/bin/npm:2:1)
at Module.compile (node:internal/modules/cjs/loader:1364:14)
at Module.extensions..js (node:internal/modules/cjs/loader:1422:10)
at Module.load (node:internal/modules/cjs/loader:1203:32)
at Module._load (node:internal/modules/cjs/loader:1019:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/usr/home/shivamdhaka1200/bin/npm' ]
}
Node.js v18.20.4
I think that npm is not installed now, what should I do ?