Raffaele Montella - Anyone is using an Apple Si...

Anyone is using an Apple Silicon machine for Signal K node server development? I recently changed my old intel based Mac with a newer one with the M1. I’m using nodejs version 22 installed via brew. The npm install fails. Any suggestion or walk around?
9 Replies
Scott Bender
Scott Bender7mo ago
I’m using an M2 Mac without issue.
David Godin
David Godin7mo ago
M1 without issue
Raffaele Montella
Raffaele MontellaOP7mo ago
Which version of node?
Scott Bender
Scott Bender7mo ago
Using v18 right now. I use nvm
David Godin
David Godin7mo ago
v18 and 20 and brew But I remeber I had to install some apple devtool for something to work. Something about registration to apple...that was way back
Raffaele Montella
Raffaele MontellaOP7mo ago
with node18, 20, and 22, performing npm install I have: npm warn deprecated [email protected]: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. npm error code 1 npm error path /Users/raffaelemontella/WebstormProjects/signalk-server/node_modules/node-sass npm error command failed npm error command sh -c node scripts/build.js npm error Binary found at /Users/raffaelemontella/WebstormProjects/signalk-server/node_modules/node-sass/vendor/darwin-arm64-108/binding.node npm error Testing binary npm error Binary has a problem: Error: dlopen(/Users/raffaelemontella/WebstormProjects/signalk-server/node_modules/node-sass/vendor/darwin-arm64-108/binding.node, 0x0001): tried: '/Users/raffaelemontella/WebstormProjects/signalk-server/node_modules/node-sass/vendor/darwin-arm64-108/binding.node' (not a mach-o file), '/System/Volumes/Preboot/Cryptexes/OS/Users/raffaelemontella/WebstormProjects/signalk-server/node_modules/node-sass/vendor/darwin-arm64-108/binding.node' (no such file), '/Users/raffaelemontella/WebstormProjects/signalk-server/node_modules/node-sass/vendor/darwin-arm64-108/binding.node' (not a mach-o file) npm error at Module._extensions..node (node:internal/modules/cjs/loader:1460:18) npm error at Module.load (node:internal/modules/cjs/loader:1203:32) npm error at Module._load (node:internal/modules/cjs/loader:1019:12) npm error at Module.require (node:internal/modules/cjs/loader:1231:19) npm error at require (node:internal/modules/helpers:177:18) npm error at module.exports (/Users/raffaelemontella/WebstormProjects/signalk-server/node_modules/node-sass/lib/binding.js:19:10) npm error at Object.<anonymous> (...omissis...) It happens using the plain shell (both zsh and bash) and the terminal embedded in the WebStprm IDE. Apparently is a node-sass incompatibility with M1. Solved downgrading node to version 16
Scott Bender
Scott Bender7mo ago
Something is not right. 18 works for me. Pretty sure I have used 20 too.
Raffaele Montella
Raffaele MontellaOP7mo ago
Fun fact: it works if I use the shell, it doesn’t work within webstorm. Anyway it is an emergency setup I need to finish and release the first stable version of FairWindSK. I’ll test on another M1 and on an M2.
David Godin
David Godin7mo ago
Works on M1 for me also.
Want results from more Discord servers?
Add your server