please choosego to mobile | Continue to access the PC version
View: 15346|Reply: 4

how to install Node JS for Orange Pi PC Plus ?

[Copy link]

1

threads

1

posts

11

credits

Novice

Rank: 1

credits
11
Published in 2017-2-21 20:46:27 | Show all floors |Read mode
how to install Node JS for Orange Pi PC Plus ? please help

10

threads

63

posts

548

credits

Senior member

Orange Pi Việt Nam

Rank: 4

credits
548
Published in 2017-11-11 00:43:47 | Show all floors
This is more simple

  1. curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
  2. apt-get install nodejs -y
Copy code

3

threads

12

posts

89

credits

Registered member

Rank: 2

credits
89
Published in 2017-8-11 11:25:22 | Show all floors

0

threads

2

posts

15

credits

Novice

Rank: 1

credits
15
Published in 2023-3-24 02:34:22 | Show all floors
Definitely agree with  @dtison on using nvm. It saved me a lot of time while looking for the perfect combination of Node.js version and library to control GPIO (the only library I got that works with my Orange Pi R1's GPIO only works with Node.js v8, but being able to run Node.js v16 for the HTTP server on a separate SSH session is great).

0

threads

1

posts

6

credits

Novice

Rank: 1

credits
6
Published in 2023-9-11 17:49:06 | Show all floors
It's very easy to install Nord.js on  Orange Pi PC Plus, You can follow the steps below:
1. Prepare Your Orange Pi PC Plus:
2. Update Package List: (sudo apt-get update)
3. Install Node.js Using NodeSource:
# Install curl (if not already installed)
sudo apt-get install curl

# Add the NodeSource repository for Node.js
curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -

# Install Node.js and npm
sudo apt-get install -y nodejs

4. Verify Installation:
node -v
npm -v



That's it! Now You are done. For ex I ahve also build a project using Nord here: Tool

Hope this guide will help you lots.
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list