Node-Red - A Note

From The TinkerNet Wiki
Revision as of 18:16, 12 January 2022 by Tinker (talk | contribs) (Created page with "Installing the NodeSource Node.js repo finishes with: ## Run `sudo apt-get install -y nodejs` to install Node.js 12.x and npm ## You may also need development tools to buil...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Installing the NodeSource Node.js repo finishes with:

## Run `sudo apt-get install -y nodejs` to install Node.js 12.x and npm
## You may also need development tools to build native addons:
     sudo apt-get install gcc g++ make
## To install the Yarn package manager, run:
     curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
     echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee 
/etc/apt/sources.list.d/yarn.list
     sudo apt-get update && sudo apt-get install yarn

Possibly... installing nodejs now automatically installs nmp?

attempting to install npm (on Debian)now causes:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libnode72 : Conflicts: nodejs-legacy
 nodejs : Conflicts: npm
E: Unable to correct problems, you have held broken packages.

(Let's see what happens if I don't try to fix this...)

installing build-essential installs gcc g++ & make for you... & does a better job of it...

The Yarn package manager is a new thing... hhhmmm...