06-21-2016, 12:46 AM
(06-20-2016, 09:52 AM)PapaStahl Wrote:(05-10-2016, 06:42 PM)Zhara Wrote: I needed the latest version of node.js (6.x) on my new pine64. When I installed node.js via apt-get, the 4.x version was installed.
So this is, what I did to get node.js 6.x:
First I installed npm:
> sudo apt-get install npm
After that I could install node.js via npm
> sudo npm i node-linux-arm64 -g
Checking the version:
> node -v
v6.1.0
Done
#nodejs #node.js
Do you think the instructions on this page will work with the Pine64? They also include MongoDB..
https://github.com/aspnetde/nodejs-webserver-guide
Some parts of that guide might be helpful, but maybe you should not always rely on that and adapt it to your needs.
As far as I have seen, this uses a quite old version of node! So I am not sure, if you really want to go this way. I guess it is more secure to use latest available versions (at least in my case, I wanted node with latest ES6-features).
Be sure to always install AMD64 packages(!).