Ich versuche aktuell NPM in der Jailed SSH Umgebung zu installieren.
Ich habe mich an der von Alex geschriebenen Anleitung orientiert um die Abhängigkeiten rauszufinden, allerdings beschwert er sich dennoch, dass /lib/cli.js fehlen würde.
Hat jemand eine Idee, welche Pfade hier fehlen?
Danke!
Code: Select all
iankjozadi@fra1:/www$ npm
internal/modules/cjs/loader.js:818
throw err;
^
Error: Cannot find module '../lib/cli.js'
Require stack:
- /usr/bin/npm
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
at Function.Module._load (internal/modules/cjs/loader.js:667:27)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.<anonymous> (/usr/bin/npm:2:1)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/usr/bin/npm' ]
}
Code: Select all
root@fra1:~ # locate /lib/cli.js
/usr/share/nodejs/npm/lib/cli.js
Code: Select all
/usr/bin/composer
/usr/bin/npm
/usr/bin/env
/usr/bin/node
Code: Select all
/usr/share/php/
/usr/share/nodejs
/usr/share/npm/
/usr/include/nodejs
/usr/include/node
/usr/lib/nodejs