I’m happy to announce that we are now building and publishing ARM64 releases for the compiler, for both Linux and macOS.
These builds are courtesy of the M2 machine running in our office at id3as.
How to get these builds:
they are not yet included in a stable release, but they are already available for the pre-release versions.
the npm installer picks them up as well, so e.g. you can do
npm install email@example.com
…and you’ll get the right binary if you’re running on a mac M1/M2 or a Linux ARM64 machine.
if you are using easy-purescript-nix to fetch your compilers, my fork has a patch to fetch the latest prerelease (you can also get spago-next from there).
I will upstream this patch once we have a stable release out with the new builds.
M1 User here. yesterday I tried npm i purescript -g and It occurs error like below
npm WARN deprecated @firstname.lastname@example.org: This functionality has been moved to @npmcli/fs
npm ERR! code 1
npm ERR! path /Users/gukbeomlee/.nvm/versions/node/v20.0.0/lib/node_modules/purescript
npm ERR! command failed
npm ERR! command sh -c install-purescript --purs-ver=0.15.8
npm ERR! [ FAILURE ] Check if a prebuilt 0.15.8 binary is provided for darwin-arm64 (317ms)
npm ERR! Error: 404 Not Found
npm ERR! at /Users/gukbeomlee/.nvm/versions/node/v20.0.0/lib/node_modules/purescript/node_modules/purescript-installer/dl-tar/index.js:193:13
npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm ERR! at async /Users/gukbeomlee/.nvm/versions/node/v20.0.0/lib/node_modules/purescript/node_modules/purescript-installer/dl-tar/index.js:190:17
npm ERR! See troubleshooting suggestions in https://github.com/purescript/purescript/blob/master/INSTALL.md
and Thanks to this article, I solved the problem. npm install email@example.com works well.
but I think many people will struggle with install like me