How to upgrade Node.js in Debian?

nodejs

(Dmitry Fedyuk) #1
npm cache clean -f
npm install -g n
n latest
ln -sf /usr/local/n/versions/node/<VERSION>/bin/node /usr/bin/node

askubuntu.com/a/480642


(Dmitry Fedyuk) #2

07