This is a new error that I did not have before deploying node:18-alpine docker app to Hetzner server.
Changing node from 18 to 16 solves problem, but I would like to run latest version of node.
If anyone sees something meaningful in this error, please let me know. Thanks.
=> ERROR [web 9/10] RUN npm install --no-package-lock 40.9s
------
> [web 9/10] RUN npm install --no-package-lock:
31.85 npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
32.61 npm WARN deprecated har-validator@5.1.5: this library is no longer supported
36.37 npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
36.44 npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
40.72 npm notice
40.72 npm notice New patch version of npm available! 10.2.3 -> 10.2.5
40.73 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.5>
40.73 npm notice Run `npm install -g npm@10.2.5` to update!
40.73 npm notice
40.73 npm ERR! code 1
40.73 npm ERR! path /opt/node_app/node_modules/sharp
40.73 npm ERR! command failed
40.73 npm ERR! command sh -c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
40.73 npm ERR! sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
40.74 npm ERR! sharp: Installation error: Invalid Version: 1.2.4_git20230717
40.74
40.74 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2023-12-14T07_26_07_635Z-debug-0.log
------
failed to solve: process "/bin/sh -c npm install --no-package-lock" did not complete successfully: exit code: 1
Error Launching Services!