sapphire type does not install on Node 19 [2]
This is very weird when i tried using the
sapphire new
command, The same happens with npm too?13 Replies
not sure but might be related to https://discord.com/channels/737141877803057244/1047481507054358558
nah I get a different error
sapphire/type@npm:2.2.6 couldn't be built successfully (exit code 1, logs can be found here: C:\Users\yusof\AppData\Local\Temp\xfs-c3444692\build.log)tells you exactly what file to open and the title of the thread is wrong.
can't be found in the cache and will be fetched from the remote registrythese are not errors. It literally is saying "hey I cannot find it locally, I'm going to fetch it from the registry (remote)
here are the contents
of the log file
Solution
downgrade to Node 18. Sapphire type is not supported on Node 19 yet.
Generally you should always use LTS versions unless you have a very very specific need to use Latest
and even then you should use a version manager like https://volta.sh and only use the newer version for the one project
Volta - The Hassle-Free JavaScript Tool Manager
Volta: Start your engines.
kk
Also note that it was the same error as Krish linked you to.
my bad
i will mark this as completed
if it works
so my guess was correct
yeah
all I got was some discontinued warnings
well hey it worked