npm installieren?

  • Mittlerweile erschien dann bei mir im Bereich node.js doch der Tab "npm-Installation" (der war bisher nicht da).

    Ein Klick darauf führt allerdings zu diesem Fehler:

    Zitat

    Fehlgeschlagen
    Anwendungsabhängigkeiten werden installiert

    • npm WARN notice [SECURITY] tunnel-agent has 1 moderate vulnerability. Go here for more details: https://nodesecurity.io/adviso…unnel-agent&version=0.4.3 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
    • npm WARN notice [SECURITY] randomatic has 1 low vulnerability. Go here for more details: https://nodesecurity.io/adviso…=randomatic&version=1.1.7 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
    • npm WARN notice [SECURITY] hoek has 1 moderate vulnerability. Go here for more details: https://nodesecurity.io/adviso…earch=hoek&version=2.16.3 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
    • npm WARN lifecycle npm is using /opt/plesk/node/9/bin/node but there is no node binary in the current PATH. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
    • sh: node: command not found
    • npm WARN frontend No description
    • npm WARN frontend No repository field.
    • npm WARN frontend No license field.
    • npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
    • npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
    • npm ERR! file sh
    • npm ERR! code ELIFECYCLE
    • npm ERR! errno ENOENT
    • npm ERR! syscall spawn
    • npm ERR! node-sass@4.8.3 install: `node scripts/install.js`
    • npm ERR! spawn ENOENT
    • npm ERR!
    • npm ERR! Failed at the node-sass@4.8.3 install script.
    • npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    • npm ERR! A complete log of this run can be found in:
    • npm ERR! /var/www/vhosts/hosting109821.a2f36.netcup.net/.npm/_logs/2018-05-15T21_33_36_503Z-debug.log
  • Ich hatte mittlerweile Kontakt zum Support, jetzt funktioniert das grundsätzliche Aktivieren von node/npm.

    Allerdings war ich davon ausgegangen, dass ich anschließend auch per SSH auf dem Server node/npm nutzen kann. Das ist leider nicht der Fall.

    Hat das hier schonmal jemand hinbekommen (beim Webhosting, nicht eigener Server)?


    Ziel ist es eigentlich ein webpack (encore) zu deployen.

    Normalerweise sollte so etwas wie

    ./node_modules/.bin/encore production

    funktionieren. Das führt allerdings zu "/usr/bin/env: node: Datei oder Verzeichnis nicht gefunden".