vendure-ecommerce / vendure

The commerce platform with customization in its DNA.
https://www.vendure.io
Other
5.66k stars 1.01k forks source link

Unable to install on Mac M1 MacOs Sonoma (Sharp issue) #2439

Open KeetTechSol opened 1 year ago

KeetTechSol commented 1 year ago

Describe the bug Not possible to install Vendure on Mac M1.

We get: error /node_modules/sharp: Command failed. Exit code: 127 Command: (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy) Arguments: Directory: /node_modules/sharp

To Reproduce Steps to reproduce the behavior:

npx @vendure/create my-sample-store
Accept default config
Wait....
See error

Expected behavior Vendure should install correctly :)

Environment (please complete the following information):

@vendure/core version: 2.0.9
Nodejs version: v18.18.0
Database (mysql/postgres etc): postgres
mattweston commented 12 months ago

Been having trouble with this on m1/node 18.16.1, stalling on sharp, then better-sqlite3, not completely sure what made it work in the end as xcode was also in the middle of re-veryifing, so that may have been a factor, the install worked after xcode finished and had just installed watchman.