Skip to content

The hello world example won't build #467

Answered by AlainReve
AlainReve asked this question in Q&A
Discussion options

You must be logged in to vote

OK, the Ubuntu version was lagging behind.

The fix was to install NVM (multiple versions of node.js)

Ubuntu solution

First install curl. (NOT with "sudo snap install curl", this will cause failure later. Use "sudo apt install curl").
Then you type :
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
Then you close and reopen the terminal (or type the "export" etc. listed at the bottom of the shell).

nvm --help
starts by saying "Node Version Manager (v0.39.1)
Don't worry, this is the version of nvm, not the version of node.js.

Then you type :
nvm install node
This will install the latest version and make it default. I got node.js version 21.6.2.

Then the command :

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@AlainReve
Comment options

Answer selected by AlainReve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants