Hi George,
I'm still having some trouble with all of this.
I've actually completely wiped and reset my M1 Air.
From a factory fresh install I've done the following steps
- Install google chrome
- Enable rosetta via terminal command:
/usr/sbin/softwareupdate --install-rosetta --agree-to-license - Install xcode command line tools via terminal command:
xcode-select --install - Download Wappler for Apple Silicon
- Create a new project using Docker and NodeJS
- Complete the system setup suggested by Wappler which installs Brew and Docker Desktop
- Try to deploy the project - and then get hit with this error:
.
ERROR [5/5] RUN npm install --no-optional 12.3s
[5/5] RUN npm install --no-optional:
#9 11.12
#9 11.12 > argon2@0.28.3 install /opt/node_app/node_modules/argon2
#9 11.12 > node-pre-gyp install --fallback-to-build
#9 11.12
#9 12.00 [argon2] Success: "/opt/node_app/node_modules/argon2/lib/binding/napi-v3/argon2.node" is installed via remote
#9 12.02
#9 12.02 > sharp@0.29.3 install /opt/node_app/node_modules/sharp
#9 12.02 > (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
#9 12.02
#9 12.09 sharp: Installation error: Use with glibc 2.28 requires manual installation of libvips >= 8.11.3
#9 12.09 sharp: Please see sharp - High performance Node.js image processing for required dependencies
#9 12.21 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
#9 12.21 npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm64"})
#9 12.21
#9 12.22 npm ERR! code ELIFECYCLE
#9 12.22 npm ERR! errno 1
#9 12.22 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 12.22 npm ERR! Exit status 1
#9 12.22 npm ERR!
#9 12.22 npm ERR! Failed at the sharp@0.29.3 install script.
#9 12.22 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
#9 12.23
#9 12.23 npm ERR! A complete log of this run can be found in:
#9 12.23 npm ERR! /root/.npm/_logs/2022-01-20T21_37_00_324Z-debug.log
failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c npm install --no-optional]: exit code: 1
Error Launching Services!
I have also then wiped the Wappler install as per the guide below and downloaded the standard Apple Mac version of Wappler and created a new project - same issue.
The only thing I haven't done yet is manually install node / npm but judging by the output from wappler it seems to have installed it itself? Maybe when Homebrew was installing?
I'm really at a loss here as my Mac install is totally fresh and can't see how there would be any incompatibilities that would make this deploy fail.