Ask coding questions

← Back to all posts
How to update node.js
AngelHeart1

Hi, discord.js have released there v13, and i have installed it, I have been getting this error and after recieved some help on this from someone in discord.js's discord server, they said its a node.js error and i need to update node to v16, how do i do that?

Answered by Saml2020 [earned 5 cycles]
View Answer
Voters
AngelHeart1
Comments
hotnewtop
Saml2020

Copy paste from piero#0001 from the Replit Discord

Hey everyone, You are probably aware that Discord.js v13 requires Node.js 16.6.0 and higher, but the highest on our installation of Nix is currently 16.4.1 and the highest on Nix unstable being 16.5.0. The reasoning for this isn't Replit's or Nix's fault, but partially Apple's fault and Node's fault. You see, the MacOS X SDK doesn't come with the signpost.h header, which Nix requires for a successful build of Node.js 16.6.0+ build. Additionally, the C++ compiler needed by Node 16.6.1 is too new for LLVM 10, which Node.js uses. The Nix community is pushing to have the Nix use LLVM 11 instead, so there is some progress there. In the meantime, feel free to fork this repl (linked below) and use it. It has Node.js 16.6.1 installed through NPM and should work just fine until 16.6.0+ will be available through Nix (or we build it on our own ;)) - BTW, shoutout to moon for this tip! - le Replit team

TLDR: Apple baf, they why Node 16.6 not on Nix, use this for now: https://replit.com/@piemadd/Node-1661

QuickV
People
Have

Asked

This

So

Many

Times!

Try using the "search" button, and you'll get a million results of people asking the same question (and some of them have answers too!)

AngelHeart1

atleast try to be helpful, another person who has responded, was helpful. @QuickV

QuickV

I wrote:

Try using the "search" button, and you'll get a million results of people asking the same question (and some of them have answers too!)

Basically that means I'm explaining that it's possible to use the search feature to look for previous questions, which already have been answered.

:)

@AngelHeart1