beyondcode / herd-community

91 stars 1 forks source link

[Bug]: NVM can't install 14 #1137

Closed socialpops-james closed 2 weeks ago

socialpops-james commented 2 weeks ago

Platform

macOS

Operating system version

Macos Sequoia

System architecture

ARM64 (M1, M2, etc)

Herd Version

1.11.2

PHP Version

N/A

Bug description

can't seem to install node v14 using herds nvm?

Steps to reproduce

nvm install 14

Relevant log output

clang: error: no such file or directory: 'Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/.deps/Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/obj.target/v8_zlib/deps/v8/third_party/zlib/compress.o.d.raw'
clang: error: no such file or directory: 'Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/.deps/Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/obj.target/v8_zlib/deps/v8/third_party/zlib/crc32.o.d.raw'
clang: error: no such file or directory: 'Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/.deps/Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/obj.target/v8_zlib/deps/v8/third_party/zlib/deflate.o.d.raw'
clang: error: no such file or directory: 'Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/.deps/Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/obj.target/v8_zlib/deps/v8/third_party/zlib/gzlib.o.d.raw'
clang: error: no such file or directory: 'Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/.deps/Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/obj.target/v8_zlib/deps/v8/third_party/zlib/gzclose.o.d.raw'
clang: error: no such file or directory: 'Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/.deps/Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/obj.target/v8_zlib/deps/v8/third_party/zlib/cpu_features.o.d.raw'
make[1]: *** [Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/obj.target/v8_zlib/deps/v8/third_party/zlib/compress.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/obj.target/v8_zlib/deps/v8/third_party/zlib/crc32.o] Error 1
make[1]: *** [Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/obj.target/v8_zlib/deps/v8/third_party/zlib/deflate.o] Error 1
clang: error: no such file or directory: 'Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/.deps/Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/obj.target/v8_zlib/deps/v8/third_party/zlib/adler32.o.d.raw'
make[1]: *** [Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/obj.target/v8_zlib/deps/v8/third_party/zlib/gzclose.o] Error 1
make[1]: *** [Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/obj.target/v8_zlib/deps/v8/third_party/zlib/gzlib.o] Error 1
make[1]: *** [Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/obj.target/v8_zlib/deps/v8/third_party/zlib/cpu_features.o] Error 1
make[1]: *** [Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/obj.target/v8_zlib/deps/v8/third_party/zlib/adler32.o] Error 1
clang: error: no such file or directory: 'Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/.deps/Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/obj.target/v8_zlib/deps/v8/third_party/zlib/gzwrite.o.d.raw'
clang: error: no such file or directory: 'Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/.deps/Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/obj.target/v8_zlib/deps/v8/third_party/zlib/gzread.o.d.raw'
make[1]: *** [Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/obj.target/v8_zlib/deps/v8/third_party/zlib/gzwrite.o] Error 1
make[1]: *** [Support/Herd/config/nvm/.cache/src/node-v14.21.3/files/out/Release/obj.target/v8_zlib/deps/v8/third_party/zlib/gzread.o] Error 1
make: *** [node] Error 2
nvm: install v14.21.3 failed!
sschlein commented 2 weeks ago

You need to open your terminal in Rosetta mode so that it emulates an Intel Mac and try again. Node 14 is not available for Apple Silicon 🙂