npm install
でエラーがでるー
$ npm i
npm WARN deprecated puppeteer@18.2.1: < 19.2.0 is no longer supported
npm ERR! code 1
npm ERR! path /home/kudu/Downloads/myproj/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh -c -- node install.js
npm ERR! ERROR: Failed to set up Chromium r1045629! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.
npm ERR! Error: connect ECONNREFUSED 2404:6800:4004:81f::2010:443
npm ERR! at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1251:16) {
npm ERR! errno: -111,
npm ERR! code: 'ECONNREFUSED',
npm ERR! syscall: 'connect',
npm ERR! address: '2404:6800:4004:81f::2010',
npm ERR! port: 443
npm ERR! }
npm ERR! A complete log of this run can be found in:
npm ERR! /home/kudu/.npm/_logs/2023-02-18T00_05_40_109Z-debug-0.log
教えてSenapi
IPv6を使わないようにする
NODE_OPTIONS=--dns-result-order=ipv4first npm install