S-IAF
Join ServerSapphire - Imagine a framework
old-sapphire-support
Noxillio - sapphiretype is impossible to install...
NNoxillio11/12/2022
@sapphire/type is impossible to install on Apple Silicon systems.
NNoxillio11/12/2022
When attempting to install it an error occurs because a tarball has not been released for arm64, resulting in a 404 when attempting to grab one. https://hastebin.com/aniducekob.coffeescript
PPhoton11/12/2022
xcode is updated?
PPhoton11/12/2022
Tbh I never faced anything like this and I use apple silicon chip too
NNoxillio11/12/2022
Are you able to install @sapphire/type?
And are you using M1 or M2? I'm on M2
And are you using M1 or M2? I'm on M2
NNoxillio11/12/2022
Don't have it, don't need it, don't want it, don't use it
NNoxillio11/12/2022
All other Sapphire packages install without issue
PPhoton11/12/2022
M2 it’s
FFavna11/12/2022
I'm on M1 and I can install it just fine. Make sure you have build tools installed.
FFavna11/12/2022
And not using Node 19
NNoxillio11/12/2022
Nope I'm on LTS
NNoxillio11/12/2022
How can I grab this without having to install Xcode in full because it's a waste of storage
NNoxillio11/12/2022
I was prompted to install Git command line tools but not Xcode tools
FFavna11/12/2022
xcode-select --install
NNoxillio11/12/2022
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
NNoxillio11/12/2022
Only available updates are macOS and Safari
FFavna11/12/2022
What does this give?

NNoxillio11/12/2022
I'm curious to know how you guys are able to install it despite no arm64 version existing? Is it using x64 instead via Rosetta?
NNoxillio11/12/2022
2395
NNoxillio11/12/2022
One below yours
FFavna11/12/2022
In that case, sec
FFavna11/12/2022
Grab the xcode cli tools from https://developer.apple.com/download/all/
NNoxillio11/12/2022
This one here?

FFavna11/12/2022
Yes
NNoxillio11/12/2022
Same thing, also still says 2395. Let me try relaunching my terminal
NNoxillio11/12/2022
Still 2395. Will try again and then reboot if same issue.
NNoxillio11/12/2022
Which macOS version are you on btw @Favna
FFavna11/12/2022
Ventura
FFavna11/12/2022

NNoxillio11/12/2022
Still 2395. Same issue after reboot
NNoxillio11/12/2022
I am on Monterey and prefer not to update as they have not fixed the controller issues present since beta.
NNoxillio11/12/2022
Our OS difference may be the cause of that 2395/6 difference?
FFavna11/12/2022
Possibly
FFavna11/12/2022
Idk what controller issue you're referring to but sure I guess
NNoxillio11/12/2022
Switch Pro controller buttons are all messed up, my DualSense hardly worked at all. OpenEmu in particular has issues with Ventura that aren't present on Monterey, per their GitHub
FFavna11/12/2022
Anyway if xcode-select is installed and updated, Node is v18 and brew packages are all updated then I dont know
NNoxillio11/12/2022
I'm going to try installing Rosetta rq
FFavna11/12/2022
It is worth running
brew update
to check if anything can be updated I guess but it shouldnt really matter unless they are ancient versionsNNoxillio11/12/2022
Rosetta didn't work
NNoxillio11/12/2022
Could it have anything to do with the exact binary of Node.js that I installed?
NNoxillio11/12/2022
There are different ones for Silicon and otherwise
NNoxillio11/12/2022
I really don't understand how when you try to install it, it doesn't try to use the URL that mine is
NNoxillio11/12/2022
Because if it was it wouldn't get anything
FFavna11/12/2022
I have it installed through volta.. https://volta.sh
FFavna11/12/2022
I assume that grabs it from the Nodejs pages
FFavna11/12/2022
But it certainly works
NNoxillio11/12/2022
Hmm
NNoxillio11/12/2022
I've never heard of it before
NNoxillio11/12/2022
Did it install the x64 build or ARM64
FFavna11/12/2022
I mean the url on the GH rpeo is auto resolved but no there are no prebuilts for Node 18 stuff yet either I think
FFavna11/12/2022
Locally it builds fine for me anyway

NNoxillio11/12/2022
I looked at the packages in the release, the only difference is the
arm64
bit in mineFFavna11/12/2022

FFavna11/12/2022
If you have NodeJS x86 installed that'd be a big problem haha
NNoxillio11/12/2022

NNoxillio11/12/2022
You said you're building it yeah?
NNoxillio11/12/2022
Mine just hangs up trying to download a nonexistent tarball from the GitHub release
FFavna11/12/2022
Yes I ran
yarn build
in the repo itselfNNoxillio11/12/2022
Yeah I'm just trying to install it with npm
NNoxillio11/12/2022
npm i @sapphire/type
NNoxillio11/12/2022
Could all this be fixed if an arm64 build was added to the release
FFavna11/12/2022
Installing works fine too

NNoxillio11/12/2022
yf
?FFavna11/12/2022
yarn --immutable
NNoxillio11/12/2022
idk what that is but like.... the error I attached above is what happens when installing with just npm. It on its own attempts to grab a file that doesn't exist in the release - and I can see that when you build it on your end, it generates an arm64 version that doesn't exist in the release either
NNoxillio11/12/2022
So it really just seems to me like the problem is an arm64 build isn't in the GitHub release which is what is being fetched
NNoxillio11/12/2022
No other reason why it would give a 404
FFavna11/12/2022
I mean the last time prebuilts were published was in april before we even did arm64 prebuilds so I guess I can try it
FFavna11/12/2022
That said
FFavna11/12/2022
You should never fully rely on prebuilds
FFavna11/12/2022
It's nice to have
FFavna11/12/2022
But it shouldnt be a requirement
FFavna11/12/2022
Anyway after https://github.com/sapphiredev/type/pull/421 I can make a new release ig
NNoxillio11/12/2022
I suppose I can take this as a sign that I should start building things like this - but if prebuilds are available for everything else then it would make sense for arm64 to be available :/ especially since all other @sapphire/ modules work
NNoxillio11/12/2022
appreciate you fam
NNoxillio11/12/2022
Now if only I actually knew how to build it - that's the whole reason I prefer prebuilds lol
FFavna11/12/2022
Because type is the only one that uses C++ code
NNoxillio11/12/2022
Ahh I see
FFavna11/12/2022
Same as libs like zlib-sync, bufferutil, canvas stuff etc
NNoxillio11/12/2022
Yeah I've never built things by myself
NNoxillio11/12/2022
Is it easy?
FFavna11/12/2022
I mean in the type repo you just run
yarn build
FFavna11/12/2022
And when npm installing the build is automatic
FFavna11/12/2022
It should fall back when the url 404s
NNoxillio11/12/2022
fall back? how do you mean
FFavna11/12/2022
"install": "node-pre-gyp install --fallback-to-build",
FFavna11/12/2022
That gets called when installing with npm/yarn
FFavna11/12/2022
It falls back to building with your own build tools
FFavna11/12/2022
Which is why xcode-select is impotant
NNoxillio11/12/2022
Does that only happen if I've cloned it or already built it locally or..?
FFavna11/12/2022
That gets called when installing with npm/yarn
NNoxillio11/12/2022
Doesn't happen when I install it with npm 

FFavna11/12/2022
It definitely does, something else just errors
NNoxillio11/12/2022
The URL 404s, so as you said it should fall back, which it doesn't. Unless you're referring to all that other stuff in the error log I sent
FFavna11/12/2022
No lock file, no node_modules, cleared cache, using npm instead of yarn

NNoxillio11/12/2022
Oh hey it does say it's attempting to fall back
FFavna11/12/2022
Yes, obviously
I did say "after the url 404s"

NNoxillio11/12/2022
I stopped reading the error after the 404 ngl
NNoxillio11/12/2022
The rest is shit I don't understand so I kinda didn't bother