Npm install - ENETUNREACH через IPV6: различия между версиями

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск
(Новая страница: «=== Npm install - ENETUNREACH через IPV6 === Ошибка при выполнении # npm install --verbose npm verb node v14.21.3 npm verb npm v6.14...»)
 
Строка 10: Строка 10:
 
  npm ERR! request to https://github.com/meteor/node-source-map-support/tarball/1912478769d76e5df4c365e147f25896aee6375e failed, reason: connect  ENETUNREACH 140.82.121.4:443
 
  npm ERR! request to https://github.com/meteor/node-source-map-support/tarball/1912478769d76e5df4c365e147f25896aee6375e failed, reason: connect  ENETUNREACH 140.82.121.4:443
 
  npm ERR! request to https://codeload.github.com/meteor/node-source-map-support/legacy.tar.gz/1912478769d76e5df4c365e147f25896aee6375e failed, reason: connect ENETUNREACH 140.82.121.10:443 - Local (0.0.0.0:0)
 
  npm ERR! request to https://codeload.github.com/meteor/node-source-map-support/legacy.tar.gz/1912478769d76e5df4c365e147f25896aee6375e failed, reason: connect ENETUNREACH 140.82.121.10:443 - Local (0.0.0.0:0)
 +
npm ERR! request to https://registry.npmjs.org/npm failed,
 +
reason: connect ENETUNREACH
  
 
Решение - добавить в hosts привязку к IPV6 адресам напрямую:
 
Решение - добавить в hosts привязку к IPV6 адресам напрямую:

Версия 10:43, 7 сентября 2023

Npm install - ENETUNREACH через IPV6

Ошибка при выполнении

# npm install --verbose
npm verb node v14.21.3
npm verb npm  v6.14.18
npm ERR! code ENETUNREACH
npm ERR! errno ENETUNREACH
npm ERR! request to https://github.com/meteor/node-source-map-support/tarball/1912478769d76e5df4c365e147f25896aee6375e failed, reason: connect  ENETUNREACH 140.82.121.4:443
npm ERR! request to https://codeload.github.com/meteor/node-source-map-support/legacy.tar.gz/1912478769d76e5df4c365e147f25896aee6375e failed, reason: connect ENETUNREACH 140.82.121.10:443 - Local (0.0.0.0:0)
npm ERR! request to https://registry.npmjs.org/npm failed, 
reason: connect ENETUNREACH

Решение - добавить в hosts привязку к IPV6 адресам напрямую:

# vi /etc/hosts
2606:4700::6810:1723 registry.yarnpkg.com
2606:4700::6810:1723 registry.npmjs.org
2606:4700::6810:ab63 yarnpkg.com
2001:67c:2b0:db32:0:1:8c52:7904 github.com
2001:67c:2b0:db32:0:1:8c52:790a codeload.github.com