New project error building with Docker and NodeJS in Mac M1

Wappler Version : 4.5.0
Operating System : MacOS
Server Model: NodeJS
Database Type: None
Hosting Type: Docker

What do you think should happen?

Creating a new blank project with Docker and NodeJS

Actual behavior

What actually happens?

Error deploying 1st time:

 > [5/5] RUN npm install --no-optional:                                                                                                                                                                                                                                             
#9 6.158 
#9 6.158 > argon2@0.28.3 install /opt/node_app/node_modules/argon2
#9 6.158 > node-pre-gyp install --fallback-to-build
#9 6.158 
#9 7.000 [argon2] Success: "/opt/node_app/node_modules/argon2/lib/binding/napi-v3/argon2.node" is installed via remote
#9 7.017 
#9 7.017 > sharp@0.29.3 install /opt/node_app/node_modules/sharp
#9 7.017 > (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
#9 7.017 
#9 7.090 sharp: Installation error: Use with glibc 2.28 requires manual installation of libvips >= 8.11.3
#9 7.091 sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
#9 7.228 npm ERR! code ELIFECYCLE
#9 7.228 npm ERR! errno 1
#9 7.234 npm ERR! sharp@0.29.3 install: `(node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)`
#9 7.234 npm ERR! Exit status 1
#9 7.234 npm ERR! 
#9 7.234 npm ERR! Failed at the sharp@0.29.3 install script.
#9 7.234 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
#9 7.238 
#9 7.238 npm ERR! A complete log of this run can be found in:
#9 7.238 npm ERR!     /root/.npm/_logs/2022-01-26T20_48_44_146Z-debug.log
------
executor failed running [/bin/sh -c npm install --no-optional]: exit code: 1
ERROR: Service 'web' failed to build : Build failed
Error Launching Services!

When I create a project without Docker it runs correctly.

Community Page
Last updated: