Install NodeJS on Endless OS

Install nvm

wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash

Run

command -v nvm

then close your current terminal and open a new terminal.

Install latest node

nvm install node

or install LTS node

nvm install --lts

https://assets.gitlab-static.net/cho2/blog-images/raw/master/2017-12-14/node.png Node LTS on Endless

https://assets.gitlab-static.net/cho2/blog-images/raw/master/2017-12-14/cordova.png Cordova on Endless with npm install -g cordova