The officially official Devuan Forum!

You are not logged in.

#1 2017-08-23 20:03:01

Droidus
Member
Registered: 2017-08-23
Posts: 10  

problem node-red on devuan raspberry pi 1

I want to install node-red on devuan.
I got this error wen after installing npm

/usr/local/lib/node_modules/npm/lib/config/cmd-list.js:113
module.exports.aliases = Object.assign({}, shorthands, affordances)
                                ^
TypeError: Object function Object() { [native code] } has no method 'assign'
    at Object.<anonymous> (/usr/local/lib/node_modules/npm/lib/config/cmd-list.js:113:33)

It is a problem that also occurs on debian systems and seems related to an old npm package.

Any idea's?
BTW I got node-red running on devuan amd64

Offline

#2 2017-08-23 20:19:38

garyz.dev1
Member
From: U.S.-South Carolina
Registered: 2017-06-15
Posts: 89  

Re: problem node-red on devuan raspberry pi 1

Droidus wrote
It is a problem that also occurs on debian systems and seems related to an old npm package.

are you refering to npm being old - or npm trying to load an old package

BTW I just got this from Random Nerd Tutorials  re: NodeRed on a TI/Debian OS
http://mail.ruisantos.me//l/9JUSgyP9C4V … 892763GBJA
'
I thought the rPi was 32bit -- ohh, the new one is 64bit !!

Last edited by garyz.dev1 (2017-08-23 20:20:51)

Offline

#3 2017-08-23 21:06:54

Droidus
Member
Registered: 2017-08-23
Posts: 10  

Re: problem node-red on devuan raspberry pi 1

I think npm is old. There are some workarounds to be found but they refer to deb packages, which involve systemd. I can try them out if they run on devuan.
Yes node-red i preinstalled on the new raspbian distributions.

Offline

#4 2017-08-23 21:11:05

Droidus
Member
Registered: 2017-08-23
Posts: 10  

Re: problem node-red on devuan raspberry pi 1

Got this response when i tried

sudo curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -

## You appear to be running on ARMv6 hardware. Unfortunately this is not currently supported by the NodeSource Linux distributions. Please use the 'linux-armv6l' binary tarballs available directly from nodejs.org for Node.js v4 and later.

Using binairy tarballs, or building it myself...

Offline

#5 2017-08-23 21:49:55

fungus
Member
From: Any witch way
Registered: 2017-07-12
Posts: 497  
Website

Re: problem node-red on devuan raspberry pi 1

nodered
this is the version in Arch/AUR repositories, but I have no idea whether arch runs on Armv6

Offline

#6 2017-08-23 22:48:20

Droidus
Member
Registered: 2017-08-23
Posts: 10  

Re: problem node-red on devuan raspberry pi 1

So far I got this lead from a friend:
https://raspberrypi.stackexchange.com/q … spberry-pi

I did no get it working yet. Tomorrow I will start with a clean image.

And I will try out dowse on a pi3. I saw a template of dowse in node red somewhere in a presentation.

Last edited by Droidus (2017-08-23 22:56:50)

Offline

#7 2017-08-24 08:17:11

Droidus
Member
Registered: 2017-08-23
Posts: 10  

Re: problem node-red on devuan raspberry pi 1

node.js still not working:
followed this procedure:

cd ~
wget https://nodejs.org/dist/v6.2.1/node-v6.2.1-linux-armv6l.tar.gz
tar -xzf node-v6.2.1-linux-armv6l.tar.gz
node-v6.2.1-linux-armv6l/bin/node -v

node is unpacked but not executable somehow.
I will to try it to build it on the raspberry itself (And take the kids out surfing in the meanwhile)
https://github.com/nodejs/node/blob/mas … -platforms

Offline

#8 2017-08-24 08:45:13

Droidus
Member
Registered: 2017-08-23
Posts: 10  

Re: problem node-red on devuan raspberry pi 1

Problem is that devuan does not have a virtual machine in its repository, Then I have to run a virtual machine in Debian.
Another problem - to compile node.js GCC 4.9.4 or higher is needed. The latest version in the devuan repository is 4.9.2.
I remember making my own packages in Slackware a long time ago, but this process with devuan is getting complicated.

Offline

#9 2017-08-24 09:56:36

fungus
Member
From: Any witch way
Registered: 2017-07-12
Posts: 497  
Website

Re: problem node-red on devuan raspberry pi 1

There is aqemu on the devuan repositories, I've not tried it yet, and how about a trial copy of vmware workstation if you haven't burned this card already.

The reason I mentioned arch is that package managers like yaourt you click on an Aur package that is always source, no binary, and it installs together with any dependencies missing.  http://archlinuxarm.org/platforms/armv6/raspberry-pi
I am sure if arch is running on arm6 artix, arch-nosystemd, and manjaro-openrc all will run.  Artix is the evolution of the other two that are now abandoned.

Offline

Board footer