What is the best way to install latest nodejs with npm on alpine linux
Solution 1:
We provide two nodejs packages:
- nodejs in main – LTS version,
- nodejs-current in community – the current version, as its called by upstream.
So if you want the latest version, install nodejs-current by running:
apk add nodejs-current
Currently it’s 7.10.1 in v3.6 (stable branch) or 8.5.0 in edge (unstable/rolling branch).
We don’t use @N
suffixes like nodejs@6
, it’s not a valid package name.