Getting up-to-date NodeJS & NPM

From Da Nerd Mage Wiki
Revision as of 16:40, 7 March 2023 by Tinker (talk | contribs) (Created page with "= The Old Instructions = <span style="color:#8B0082">'''NOTE:''' The Ubunto repositories serve up an outdated version of Node.js. (v10.19.0)</span> <span style="color:#8B0082">Node-Red 2 requires v12... (and apparently, soon to require newer than that...)</span> [[Getting nodejs v12{{!}}Getting nodejs v12]] <span style="color:#8B0082">To determine what version you actually have once it's installed:</span> * <code><span style="color:#8B0082">nodejs -v</span></code> Any...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Old Instructions

NOTE: The Ubunto repositories serve up an outdated version of Node.js. (v10.19.0)

Node-Red 2 requires v12... (and apparently, soon to require newer than that...)

Getting nodejs v12

To determine what version you actually have once it's installed:

  • nodejs -v

Anywho...

  • sudo apt install nodejs -y
  • sudo apt-get install -y build-essential
  • sudo apt install npm -y
  • sudo npm install npm@latest -g
    • NO! DO NOT UPDATE NPM!
    • (Doesn't actually seem to change anything on Debian... Updates to 8.3.0 on Ubuntu.)