node-gyp keep downloading header even there is cache
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- À clarifier
- Activité
- À l'abandon
- Stack technique
- linux, nodejs
- Domaine
- build-system, tooling
Piste de recherche
Commencez par le flux d’installation de node-gyp v10.0.1 et le répertoire de cache indiqué dans /home/node-py/.cache/node-gyp/20.11.1, puis reproduisez la compilation hors ligne avec Node v20.11.1 et l’archive des headers mise en cache. Le travail est considéré comme terminé lorsque node-gyp reconnaît les headers mis en cache et ne demande pas https://nodejs.org/download/release/v20.11.1/node-v20.11.1-headers.tar.gz.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
I am trying to install renovate which it require node-gyp but when it try to install it keep try to download the header from the internet. But I am trying to run this where there is not access to internet and trying to achieve by caching the header file. Is there anyway I can do that? I have tried to put the header tar in /home/node-py/.cache/node-gyp/20.11.1 as see from the logs but it seems to be not acknowledging that the file already exist.
npm - 10.2.4
node - v20.11.1
Platform: Linux
npm ERR! gyp verb install input version string "20.11.1"
npm ERR! gyp verb install installing version: 20.11.1
npm ERR! gyp verb install --ensure was passed, so won't reinstall if already installed
npm ERR! gyp verb install version not already installed, continuing with install 20.11.1
npm ERR! gyp verb ensuring devDir is created /home/node-py/.cache/node-gyp/20.11.1
npm ERR! gyp verb created devDir /home/node-py/.cache/node-gyp/20.11.1
npm ERR! gyp http GET https://nodejs.org/download/release/v20.11.1/node-v20.11.1-headers.tar.gz
npm ERR! gyp WARN install got an error, rolling back install
npm ERR! gyp verb remove using node-gyp dir: /home/node-py/.cache/node-gyp
npm ERR! gyp verb remove removing target version: 20.11.1
npm ERR! gyp verb remove removing development files for version: 20.11.1
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack FetchError: request to https://nodejs.org/download/release/v20.11.1/node-v20.11.1-headers.tar.gz failed, reason: read ECONNRESET
npm ERR! gyp ERR! stack at ClientRequest.<anonymous> (/opt/node/lib/node_modules/renovate/node_modules/minipass-fetch/lib/index.js:130:14)
npm ERR! gyp ERR! stack at ClientRequest.emit (node:events:518:28)
npm ERR! gyp ERR! stack at _destroy (node:_http_client:875:13)
npm ERR! gyp ERR! stack at onSocketNT (node:_http_client:895:5)
npm ERR! gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
npm ERR! gyp ERR! System Linux 5.10.210-201.852.amzn2.x86_64
npm ERR! gyp ERR! command "/opt/node/bin/node" "/opt/node/lib/node_modules/renovate/node_modules/.bin/node-gyp" "rebuild" "--release"
npm ERR! gyp ERR! cwd /opt/node/lib/node_modules/renovate/node_modules/better-sqlite3
npm ERR! gyp ERR! node -v v20.11.1
npm ERR! gyp ERR! node-gyp -v v10.0.1
npm ERR! gyp ERR! not ok
npm verb exit 1
npm verb unfinished npm timer reify 1710906645648
npm verb unfinished npm timer reify:build 1710906694045
npm verb unfinished npm timer build 1710906694048
npm verb unfinished npm timer build:deps 1710906694049
npm verb unfinished npm timer build:run:install 1710906694137
npm verb unfinished npm timer build:run:install:node_modules/renovate/node_modules/better-sqlite3 1710906694138
npm verb code 1
- Langage dominant
- Python
- Étoiles
- 10.7k
- Forks
- 1.9k
- Merge moyen
- 3 j 16 h
- PR mergées (30 j)
- 5
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de nodejs/node-gyp
-
dependencies github_actions
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
Les mainteneurs répondent en général sous 1 jour
-
Support authentication for private `--dist-url` Node.js distribution mirrorsPeut-être pris @carmelid l’a pris il y a 26 jours. Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
nodejs/node-gyp#3372 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
gyp: 'Undefined variable android_ndk_path' when building native modules on Android (Termux) without NDKPeut-être pris @lesliechowsh l’a pris il y a 62 jours. Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
nodejs/node-gyp#3355 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
MSYS2
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
nodejs/node-gyp#3350 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
nodejs/node-gyp#3344 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de nodejs/node-gyp
Issues similaires
-
Workflow.schedule stops when a cron deadline passes before sleepPeut-être pris @HuaTNA l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
[Bug] HiveDialect shares its colspecs dict with SQLAlchemy's DefaultDialect (python/pyhive)Peut-être pris @rusackas l’a pris aujourd’hui. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 80/100
apache/kyuubi#7786 · 1 commentaire ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
Les mainteneurs répondent en général sous 1 jour
-
[20.0] hr_work_entry: Duration column of Export Time Entries is truncated to whole hoursPeut-être pris @odooaktiv l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
fix formatting of the sample database page of the docsPeut-être pris @Aaqibhafeezkhan l’a pris aujourd’hui. Ouvertedocumentation good first issue help wanted
Difficulté 1/5 Moins d'une heure Accessibilité débutants 72/100
chaoss/CollectOSS#544 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour