Closed rhclayto closed 2 years ago
Hi, could your issue be related to this? https://github.com/lovell/sharp/issues/3030
Hi, could your issue be related to this? lovell/sharp#3030
It looks to be so. This machine has an AMD CPU from 2011 that lacks some of the pre-built sharp binaries' needed CPU features. So I won't be able to use the npx @vendure/create vendure
deployment method. Bummer that an image-processing library should be such a problem. Thanks for pointing me to the problem.
Update: I was able to use npx @vendure/create vendure
to install Vendure. The package of libvips-dev in Ubuntu repository was too old for the current version of sharp, so it was ignored. I built & installed the latest libvips from source, & sharp recognized & used it when installed via vendure-create. Tip from: https://sharp.pixelplumbing.com/install#custom-libvips
So this is doable for those of us toiling away on older hardware. Thanks again for helping to isolate the problem.
Describe the bug Installation with npx fails with message 'Illegal instruction'. No other messages.
To Reproduce Steps to reproduce the behavior:
npx @vendure/create vendure
.Expected behavior Installation completes successfully.
Environment (please complete the following information):
npx @vendure/create vendure
Additional context I next tried installing from the git repository using the Development instructions from the Readme. At the step of populating the DB (tried PostgresQL, MySQl, SQlite) it also gives an Illegal Error. The end of running
strace node -r ts-node/register populate-dev-server.ts
shows:Running it with gdb shows:
I have tried with node v14.17.1 & v16.13.2 (managed with n).
Edit: I removed the file
/opt/vendure/node_modules/sharp/vendor/8.11.3/linux-x64/lib/libvips-cpp.so.42
, & installed the package (Ubuntu 20.04)libvips-dev
, & was able to get the following (note it used mysql even though I specified PostgreSQL):With gdb: