ish
ish copied to clipboard
Node/NPM giving illegal instructions error.
cvtdq2pd
The issue is not related to npm, it is nodejs that causes this error.
Workaround: Install older 3.18 nodejs and since it cant use the current icu libs also some additional dependencies before installing npm
wget https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86/nodejs-current-20.8.1-r0.apk
wget https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86/icu-data-en-73.2-r2.apk
wget https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86/icu-libs-73.2-r2.apk
apk add icu-data-en-73.2-r2.apk icu-libs-73.2-r2.apk nodejs-current-20.8.1-r0.apk
apk add npm