I am fond of nodejs, and i also wanted to install the latest version on the VIM (pro).
My installed firmware is Ubuntu 16.04 server, dated 11feb17.
I followed the instructions published here:
But I got stuck at some point.
Here are the commands I typed:
sudo apt-get install git
sudo apt-get install wget
sudo apt-get install build-essential libssl-dev
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash -
at this point, we are able to list all available nodejs version up to 7.7.3 as of today.
BUT this next command failed miserably:
nvm install 7.7.3
BECAUSE the function nvm_get_arch() in the file ~/.nvm/nvm.sh is returning "aarch64" instead of "arm64" which is expected (see file list in https://nodejs.org/dist/v7.7.3/)
So I just modified nvm_get_arch() to return "arm64" exited my session, logged back in, then I was able to successfully run "nvm install 7.7.3"
last step to perform is:
nvm use 7.7.3
then "node --version" and "npm -v" were succesfull and we (hopefully) now can enjoy all the beauty of the latest nodejs functions on our beloved Khadas VIM;
Please try on your own and get back here to report about your success of failure.