GitHub user AlainReve added a comment to the discussion: The hello world 
example won't build

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 : 
cordova create hello com.example.hello HelloWorld funtioned! 

Big thank you to breautek for pointing me in the right direction. It didn't 
cross my mind that the Ubuntu packages could be lagging behind the current 
version so much. I was really stuck.






GitHub link: 
https://github.com/apache/cordova/discussions/467#discussioncomment-8656529

----
This is an automatically sent email for issues@cordova.apache.org.
To unsubscribe, please send an email to: issues-unsubscr...@cordova.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to