Support #83891
Erreur sur le clean-install via npm à l'installation de godo
0%
Description
J'ai cette erreur à l'installation :
error Cannot read property 'dialog-polyfill' of undefined
Voici la trace :
$ make clean $ cp local-inventory.yml.example local-inventory.yml $ make install ... TASK [base : ssh git clone godo.js] TASK [base : https git clone godo.js] TASK [base : pip install /home/nroche/src/godo.js] TASK [base : build /home/nroche/src/godo.js] FAILED! => {"changed": true, "cmd": ["/home/nroche/envs/publik-env-py3/bin/python", "setup.py", "build"] $ cd /home/nroche/src/godo.js $ . ~/envs/publik-env-py3/bin/activate $ python setup.py build running build running compile_nodejs npm WARN prepare removing existing node_modules/ before installation npm ERR! Cannot read property 'dialog-polyfill' of undefined npm ERR! A complete log of this run can be found in: npm ERR! /home/nroche/.npm/_logs/2023-11-24T08_07_45_656Z-debug.log Traceback (most recent call last): ... File "/home/nroche/src/godo.js/setup.py", line 53, in run subprocess.check_call('npm clean-install', shell=True) File "/usr/lib/python3.11/subprocess.py", line 413, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'npm clean-install' returned non-zero exit status 1. $ cat /home/nroche/.npm/_logs/2023-11-24T08_07_45_656Z-debug.log 0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli '/home/nroche/.nvm/versions/node/v12.16.1/bin/node', 1 verbose cli '/home/nroche/.nvm/versions/node/v12.16.1/bin/npm', 1 verbose cli 'clean-install' 1 verbose cli ] 2 info using npm@6.13.4 3 info using node@v12.16.1 4 verbose npm-session 0ee4a09eb44b9ba1 5 info prepare initializing installer 6 verbose prepare starting workers 7 verbose prepare installation prefix: /home/nroche/src/godo.js 8 verbose prepare using package-lock.json 9 warn prepare removing existing node_modules/ before installation 10 verbose checkLock verifying package-lock data 11 verbose teardown shutting down workers. 12 info teardown Done in 0s 13 verbose stack TypeError: Cannot read property 'dialog-polyfill' of undefined 13 verbose stack at /home/nroche/.nvm/versions/node/v12.16.1/lib/node_modules/npm/node_modules/lock-verify/index.js:27:40 13 verbose stack at Array.forEach (<anonymous>) 13 verbose stack at /home/nroche/.nvm/versions/node/v12.16.1/lib/node_modules/npm/node_modules/lock-verify/index.js:25:25 14 verbose cwd /home/nroche/src/godo.js 15 verbose Linux 6.1.0-13-amd64 16 verbose argv "/home/nroche/.nvm/versions/node/v12.16.1/bin/node" "/home/nroche/.nvm/versions/node/v12.16.1/bin/npm" "clean-install" 17 verbose node v12.16.1 18 verbose npm v6.13.4 19 error Cannot read property 'dialog-polyfill' of undefined 20 verbose exit [ 1, true ]
Historique
Mis à jour par Nicolas Roche il y a 5 mois
A force de faire n'importe quoi (et fouiller du côté de shrinkwrap) je suis tombé sur ce message :
npm ERR! cipm can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
et magie :
$ node /home/nroche/.nvm/versions/node/v12.16.1/bin/npm install
après ça le "clean-install" et le "$ python setup.py build" fonctionnent.
Vu mon erreur, je présume qu'il y aurait un truc bancal du côté du fichier package-lock.json qui est suivi dans git.
Pour la suite, je devrais réussir à me débrouiller avec ansible pour que l'installation complète fonctionne (en bypassant la mise à jour des dépôts).
Mis à jour par Nicolas Roche il y a 5 mois
J'ai réussi à aller au bout de l'installation.
Pour cela j'ai du également retirer la dépendance à Godo dans le setup.py de wcs.
Cependant j'ai toujours cette même erreur npm sur "make upgrade" par exemple.
Mis à jour par Nicolas Roche il y a 3 mois
- Assigné à mis à Nicolas Roche
J'ai toujours cette erreur, mais sur un seul de mes deux ordinateurs.
Il faut que je creuse...