[GELÖST] Installation der Bibliothek popperjs mit nmp scheitert

Debian macht sich hervorragend als Web- und Mailserver. Schau auch in den " Tipps und Tricks"-Bereich.
Antworten
Mpenzi
Beiträge: 65
Registriert: 26.07.2023 09:49:02

[GELÖST] Installation der Bibliothek popperjs mit nmp scheitert

Beitrag von Mpenzi » 05.08.2023 12:27:24

Hallo,

ich möchte auf einem Debian 12 mit Apache2 für Bootstrap 5 und Symfony 6 die Bibliothek "popperjs" mit npm installieren. Das scheitert aber wie folgt:

Code: Alles auswählen

npm i @popperjs/core

npm ERR! code ECONNREFUSED
npm ERR! syscall connect
npm ERR! errno ECONNREFUSED
npm ERR! FetchError: request to https://registry.npmjs.org/@popperjs%2fcore failed, reason: connect ECONNREFUSED 2606:4700::6810:1922:443
npm ERR!     at ClientRequest.<anonymous> (/usr/share/nodejs/minipass-fetch/lib/index.js:130:14)
npm ERR!     at ClientRequest.emit (node:events:513:28)
npm ERR!     at TLSSocket.socketErrorListener (node:_http_client:496:9)
npm ERR!     at TLSSocket.emit (node:events:525:35)
npm ERR!     at emitErrorNT (node:internal/streams/destroy:151:8)
npm ERR!     at emitErrorCloseNT (node:internal/streams/destroy:116:3)
npm ERR!     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
npm ERR!  FetchError: request to https://registry.npmjs.org/@popperjs%2fcore failed, reason: connect ECONNREFUSED 2606:4700::6810:1922:443
npm ERR!     at ClientRequest.<anonymous> (/usr/share/nodejs/minipass-fetch/lib/index.js:130:14)
npm ERR!     at ClientRequest.emit (node:events:513:28)
npm ERR!     at TLSSocket.socketErrorListener (node:_http_client:496:9)
npm ERR!     at TLSSocket.emit (node:events:525:35)
npm ERR!     at emitErrorNT (node:internal/streams/destroy:151:8)
npm ERR!     at emitErrorCloseNT (node:internal/streams/destroy:116:3)
npm ERR!     at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
npm ERR!   code: 'ECONNREFUSED',
npm ERR!   errno: 'ECONNREFUSED',
npm ERR!   syscall: 'connect',
npm ERR!   address: '2606:4700::6810:1922',
npm ERR!   port: 443,
npm ERR!   type: 'system',
npm ERR!   requiredBy: '.'
npm ERR! }
npm ERR! 
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly.  See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/mpenzi/.npm/_logs/2023-08-05T09_55_54_415Z-debug-0.log
Auf https://registry.npmjs.org/@popperjs%2fcore habe ich gesehen, dass es aktuell die Version 2.11.8 gibt. Ich habe auch keinen Proxy, sondern diese Maschine liegt hinter einer normalen Firewall.
Könnt ihr mir sagen, was mit npm falsch läuft? Und wenn mein Projekt in "/var/html/www/projekt" liegt, ich aus diesem Verzeichnis den Installationsbefehl absetze, wo wird die Bibliothek abgelegt? Etwa in "/var/html/www/projekt/assets/" oder in "/var/html/www/projekt/public/"?

Viele Grüße
Mpenzi
Zuletzt geändert von Mpenzi am 07.08.2023 17:47:35, insgesamt 1-mal geändert.

Mpenzi
Beiträge: 65
Registriert: 26.07.2023 09:49:02

Re: Installation der Bibliothek popperjs mit nmp scheitert

Beitrag von Mpenzi » 07.08.2023 17:47:16

Ich habe den Fehler gefunden. Das lag an meiner Workstation, die zusätzlich IPv6 zu Ipv4 kann. Jetzt verteilt mein Router leider die IPv6-Adressen nicht richtig. Und npm wurde über die IPv6-Schnittstelle angesprochen. Ich habe IPv6 vorerst in den /etc/sysctl.conf abgeschaltet. Danach funktioniert npm wieder.

Antworten