Anomalie #4596
Mis à jour par Christian P. Momon il y a plus de 4 ans
En installant un nouveau plugin (ici horizontal_line) via l'interface web, journalctl -f -u etherpad-lite.service retourne :
<pre>
juil. 14 01:17:01 pad.cluster.chapril.org run.sh[29881]: npm WARN saveError ENOENT: no such file or directory, open '/var/www/etherpad-lite-1.8.4/package.json'
juil. 14 01:17:01 pad.cluster.chapril.org run.sh[29881]: npm WARN enoent ENOENT: no such file or directory, open '/var/www/etherpad-lite-1.8.4/package.json'
juil. 14 01:17:01 pad.cluster.chapril.org run.sh[29881]: npm WARN ep_table_of_contents@0.2.0 requires a peer of ep_headings2@* but none is installed. You must install peer dependencies yourself.
juil. 14 01:17:01 pad.cluster.chapril.org run.sh[29881]: npm WARN etherpad-lite-1.8.4 No description
juil. 14 01:17:01 pad.cluster.chapril.org run.sh[29881]: npm WARN etherpad-lite-1.8.4 No repository field.
juil. 14 01:17:01 pad.cluster.chapril.org run.sh[29881]: npm WARN etherpad-lite-1.8.4 No README data
juil. 14 01:17:01 pad.cluster.chapril.org run.sh[29881]: npm WARN etherpad-lite-1.8.4 No license field.
juil. 14 01:17:01 pad.cluster.chapril.org run.sh[29881]: [2020-07-14 01:17:01.719] [ERROR] console -
juil. 14 01:17:02 pad.cluster.chapril.org run.sh[29881]: [2020-07-14 01:17:02.242] [INFO] console - + ep_horizontal_line@0.0.4
juil. 14 01:17:02 pad.cluster.chapril.org run.sh[29881]: added 1 package from 1 contributor and audited 954 packages in 6.033s
juil. 14 01:17:02 pad.cluster.chapril.org run.sh[29881]: [2020-07-14 01:17:02.596] [INFO] console -
juil. 14 01:17:02 pad.cluster.chapril.org run.sh[29881]: 26 packages are looking for funding
juil. 14 01:17:02 pad.cluster.chapril.org run.sh[29881]: run `npm fund` for details
juil. 14 01:17:02 pad.cluster.chapril.org run.sh[29881]: [2020-07-14 01:17:02.597] [INFO] console - found 25 vulnerabilities (23 low, 2 critical)
juil. 14 01:17:02 pad.cluster.chapril.org run.sh[29881]: run `npm audit fix` to fix them, or `npm audit` for details
juil. 14 01:17:03 pad.cluster.chapril.org run.sh[29881]: [2020-07-14 01:17:03.076] [ERROR] console - Failed to load '/var/www/etherpad-lite-1.8.4/node_modules/ep_better_pdf_export/export.js' for 'ep_better_pdf_export/ep_better_pdf_export/hooks/exportConvert': Error: Cannot find module './node_modules/html-pdf'
juil. 14 01:17:03 pad.cluster.chapril.org run.sh[29881]: [2020-07-14 01:17:03.078] [INFO] console - Restarting express server
juil. 14 01:17:21 pad.cluster.chapril.org run.sh[29881]: [2020-07-14 01:17:21.948] [INFO] access - [ENTER] Pad "test": Client DJprdghorfloAdB_AAAE with IP "2a01:4f8:10b:c42::93" entered the pad
</pre>
Demande : traiter le npm warn packages.json