Kimovitzh
Posts: 8
Joined: Sun Dec 27, 2015 11:02 am
Location: Denmark

Installing node_latest_armhf.deb

Sun Dec 27, 2015 11:11 am

Hi.

I've just got my first Raspberry pi, and is total new to all this coding and command line and so on, so the inevitable happened and i got an error and googling it didn't help.

I'm trying to install the HomeKit with siri stuff, and is, this time, trying to follow the guide shown here: https://www.youtube.com/watch?v=RX2lBAby2hc

But, when i get to

Code: Select all

dpkg -i node_latest_armhf.deb
i always encounter this error

Code: Select all

dpkg: regarding node_latest_armhf.deb containing node:
 nodejs-legacy conflicts with node
  node (version 4.2.1-1) is to be installed.
  node provides node and is to be installed.

dpkg: error processing archive node_latest_armhf.deb (--install):
 conflicting packages - not installing node
Errors were encountered while processing:
 node_latest_armhf.deb
As said, i've tried googling but didn't find anything, and since i'm new in this game i can't use my logics to figure this one out ... so what's happening? And how do I fix this?

Regards - Kim

asandford
Posts: 1999
Joined: Mon Dec 31, 2012 12:54 pm
Location: Waterlooville

Re: Installing node_latest_armhf.deb

Sun Dec 27, 2015 5:58 pm

For various reasons, the version of node bundled is pretty old.

To upgrade:

Code: Select all

sudo apt-get remove nodered
sudo apt-get remove nodejs nodejs-legacy
sudo apt-get remove npm   # if you installed npm
Then for Pi 2:

Code: Select all

curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
sudo apt-get install -y build-essential python-dev nodejs npm
Or Pi 0 /1:

Code: Select all

wget http://node-arm.herokuapp.com/node_archive_armhf.deb
sudo dpkg -i node_archive_armhf.deb
sudo apt-get install -y build-essential python-dev npm
To re-install Node Red (if required):

Code: Select all

sudo npm install -g --unsafe-perm  node-red

Kimovitzh
Posts: 8
Joined: Sun Dec 27, 2015 11:02 am
Location: Denmark

Re: Installing node_latest_armhf.deb

Sun Dec 27, 2015 6:46 pm

So instead of doing

Code: Select all

wget http://node-arm.herokuapp.com/node_latest_armhf.deb
dpkg -i node_latest_armhf.deb
I just do

Code: Select all

curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
sudo apt-get install -y build-essential python-dev nodejs npm
Right?
I've got the Pi 2 b.

asandford
Posts: 1999
Joined: Mon Dec 31, 2012 12:54 pm
Location: Waterlooville

Re: Installing node_latest_armhf.deb

Sun Dec 27, 2015 6:57 pm

Kimovitzh wrote:So instead of doing

Code: Select all

wget http://node-arm.herokuapp.com/node_latest_armhf.deb
dpkg -i node_latest_armhf.deb
I just do

Code: Select all

curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
sudo apt-get install -y build-essential python-dev nodejs npm
Right?
I've got the Pi 2 b.
Yes.
Those instructions were lifted from the Node Red docs.

Kimovitzh
Posts: 8
Joined: Sun Dec 27, 2015 11:02 am
Location: Denmark

Re: Installing node_latest_armhf.deb

Sun Dec 27, 2015 7:11 pm

asandford wrote: Yes.
Those instructions were lifted from the Node Red docs.

Thanks a lot!

Is there anything else that should be changed, or is it just the two commands?
All commands from the video can be found here: https://drive.google.com/file/d/0B6GR9H ... dTVEE/view

asandford
Posts: 1999
Joined: Mon Dec 31, 2012 12:54 pm
Location: Waterlooville

Re: Installing node_latest_armhf.deb

Sun Dec 27, 2015 7:23 pm

Kimovitzh wrote: All commands from the video can be found here: https://drive.google.com/file/d/0B6GR9H ... dTVEE/view
I have no iDevices (apart from my work iphone - which is so locked down, I couldn't experiment with it even if I wanted to), so have no idea what else may be required.

Kimovitzh
Posts: 8
Joined: Sun Dec 27, 2015 11:02 am
Location: Denmark

Re: Installing node_latest_armhf.deb

Sun Dec 27, 2015 10:47 pm

Found a solution and it's up an running.

Thanks a lot :)

knowack
Posts: 5
Joined: Fri Oct 26, 2012 4:58 am

Re: Installing node_latest_armhf.deb

Sun Jan 03, 2016 1:21 am

What was your solution?

krishnadass
Posts: 1
Joined: Fri May 20, 2016 2:06 pm

Installing node_latest_armhf.deb

Fri May 20, 2016 2:10 pm

Hi, I am getting problem while installing node red.
sudo dpkg -i node_latest_armhf.deb
dpkg: error processing archive node_latest_armhf.deb (--install):
package architecture (armhf) does not match system (i386)
Errors were encountered while processing:
node_latest_armhf.deb

DirkS
Posts: 9047
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Installing node_latest_armhf.deb

Fri May 20, 2016 2:22 pm

krishnadass wrote:Hi, I am getting problem while installing node red.
sudo dpkg -i node_latest_armhf.deb
dpkg: error processing archive node_latest_armhf.deb (--install):
package architecture (armhf) does not match system (i386)
Errors were encountered while processing:
node_latest_armhf.deb
Is this on a Raspberry Pi or are you trying to install this on an Intel based computer?

Return to “Raspbian”

Who is online

Users browsing this forum: No registered users and 12 guests