# New installation - full raspbian - today

**URL:** <https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389>\
**Category:** General\
**Created:** [18 August 2018 14:55 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389 "2018-08-18T14:55:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![scargill](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scargill/32/1118_2.png) [@scargill](https://discourse.nodered.org/u/scargill)\
**Post date:** [18 August 2018 14:55 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/1 "2018-08-18T14:55:08Z")

</div>

Just installed latest node red onfully up to date new raspbian on pi2. SQLITE and other nodes no problem (sqlite takes ages to install) - but no serial;port - so in NR I went to pallette manager - install node-red-node-serialport - why even now is this standard part if a pi a problem? Before any of this, In the raspbian setup I made sure serial was enabled and debug console disabled.

Pete

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [18 August 2018 16:00 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/2 "2018-08-18T16:00:33Z")

</div>

Did you use the install script provided or your own script?

Which version of nodejs have you got installed ?

---

<div class="post-metadata">

**Author:** ![scargill](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scargill/32/1118_2.png) [@scargill](https://discourse.nodered.org/u/scargill)\
**Post date:** [18 August 2018 16:57 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/3 "2018-08-18T16:57:09Z")

</div>

````auto
The NodeJS is the current version 8.11 – all of this was installed today. 

I used my own script, used hundreds of times to install node node red nodes, phs and much more. This is the first time I’ve hit a brick wall with serial… 

The upgrade script on the node red site – I assume you mean this one 
```- ash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered)```

````

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [18 August 2018 16:59 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/4 "2018-08-18T16:59:29Z")

</div>

> [@scargill](#):
>
> ```auto
> The NodeJS is the current version 8.11 – all of this was installed today. I used my own script, used hundreds of times to install node node red nodes, phs and much more. This is the first time I’ve hit a brick wall with serial… the upgrade script on the node red site – I assume youy mean this one - ash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered)
> 
> ```

Could you format your post please Pete 😮

---

<div class="post-metadata">

**Author:** ![scargill](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scargill/32/1118_2.png) [@scargill](https://discourse.nodered.org/u/scargill)\
**Post date:** [18 August 2018 17:46 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/5 "2018-08-18T17:46:51Z")

</div>

I tried the RPI script mentioned above. It used to work, now it simply screrwed up settings.js and removed some nodes - there was notying new sinceearly this afternoon anyway.

Thankfully I'd backed everything up with the wonderful rpi-clone so I'm back to square one - all working but no serial port.

Can anyone advise?

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [18 August 2018 17:56 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/6 "2018-08-18T17:56:37Z")

</div>

What npm version are you using.  
`npm -v`

Paul

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [18 August 2018 19:19 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/7 "2018-08-18T19:19:24Z")

</div>

> [@scargill](#):
>
> simply screrwed up settings.js

Can you explain what you mean by that? I don't believe the script touches the settings file... so what happened to it?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 August 2018 19:54 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/8 "2018-08-18T19:54:43Z")

</div>

> [@scargill](#):
>
> it simply screrwed up settings.js and removed some nodes

Were the nodes it removed ones that were missing from package.json?

---

<div class="post-metadata">

**Author:** ![scargill](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scargill/32/1118_2.png) [@scargill](https://discourse.nodered.org/u/scargill)\
**Post date:** [19 August 2018 06:02 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/9 "2018-08-19T06:02:41Z")

</div>

Sorry Nick - I went to my backup beafore I got to see what happened. Paul, - Npm 8.x

---

<div class="post-metadata">

**Author:** ![scargill](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scargill/32/1118_2.png) [@scargill](https://discourse.nodered.org/u/scargill)\
**Post date:** [19 August 2018 06:11 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/10 "2018-08-19T06:11:25Z")

</div>

None of which is helping with my originasl issue - what happened with the serialport node. It simply refuses to install. Any ideas?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 August 2018 07:02 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/11 "2018-08-19T07:02:10Z")

</div>

> [@scargill](#):
>
> Any ideas?

Have you posted the error you get? I don't see it.

Since there is a script provided that does install the node then presumably there is a difference between the environment provided by the script and that provided by your script. Either that or the method of installation is different. You need to find what that difference is.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [19 August 2018 07:09 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/12 "2018-08-19T07:09:09Z")

</div>

What happens if you install it manually. Can you post the error log ?

```
cd ~/.node-red && npm i node-red-node-serialport
```

---

<div class="post-metadata">

**Author:** ![fragolinux](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fragolinux/32/1137_2.png) [@fragolinux](https://discourse.nodered.org/u/fragolinux)\
**Post date:** [19 August 2018 11:29 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/13 "2018-08-19T11:29:50Z")

</div>

hi, i've issues too, today... tried on both ubuntu 16.04 and 18.04... here are the logs: [https://pastebin.com/uvMWD1Tw](https://pastebin.com/uvMWD1Tw)  
as you can see, errors at the end about bcrypt...  
i even installed some other nodes BEFORE (line 67 in previous link), trying to prevent those node-pre-gyp errors...

nodejs v8.11.4 node-red v0.19.1 npm v6.4.0

this is what i did:  
curl -sL [https://deb.nodesource.com/setup\_8.x](https://deb.nodesource.com/setup_8.x) \> nodesetup.sh  
sudo bash nodesetup.sh  
sudo apt-get install -y nodejs  
sudo npm install -g npm node-gyp node-pre-gyp  
sudo npm install -g --unsafe-perm node-red

---

<div class="post-metadata">

**Author:** ![scargill](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scargill/32/1118_2.png) [@scargill](https://discourse.nodered.org/u/scargill)\
**Post date:** [19 August 2018 14:10 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/14 "2018-08-19T14:10:53Z")

</div>

I am getting (npn install serialport - with or without sudo - and with or without the node-red-node prefix) "error - method not allowed"

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [19 August 2018 16:30 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/15 "2018-08-19T16:30:07Z")

</div>

Pete - which version of npm is in use ?  
Are you trying to install a) globally ? b) using sudo ?  
You shouldn't need to install serialport on it's own as well will require it in

---

<div class="post-metadata">

**Author:** ![scargill](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scargill/32/1118_2.png) [@scargill](https://discourse.nodered.org/u/scargill)\
**Post date:** [19 August 2018 17:30 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/16 "2018-08-19T17:30:53Z")

</div>

Hi Dave

I was installing in the home/pi/.node-red directory as the node did not appear in Node-Red despite enabling serial on the pi settings as usual and disabling serial debugging. NPM 8 – and I tried both sudo and without as user pi…. Both said error – method not allowed. I’ve never had that error before.. and I’m not new to sorting i2c and PI serialport issues.

Anyway I’m doing another install from scratch with node 6 – again on a PI2… – will report back and I’ll be a little more precise this time.

Pete

---

<div class="post-metadata">

**Author:** ![scargill](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scargill/32/1118_2.png) [@scargill](https://discourse.nodered.org/u/scargill)\
**Post date:** [19 August 2018 18:47 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/17 "2018-08-19T18:47:19Z")

</div>

ok, - new install from scratch....using npm 6. Node-Red is working fine but node-red-node/arduino is complaining "error - cannot find module "serialport" and there is no serial in the inputs and outputs in NR.

For the next step I stopped node-red and in the home/pi/.node-red directory ran npm i node-red-node-serialport as instructed here: [https://www.npmjs.com/package/node-red-node-serialport?activeTab=readme](https://www.npmjs.com/package/node-red-node-serialport?activeTab=readme)

NPM came back with the same problem - "Error - method not allowed".

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [20 August 2018 08:37 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/19 "2018-08-20T08:37:25Z")

</div>

Pete  
what I just did is start with clean Raspbian Stretch install (I used minimal to test)

- set up ssh, change hostname, password, set overclock as required.
- run `sudo apt-get update && sudo apt-get -y dist-upgrade`
- reboot
- run our bash install/upgrade script from the docs

That gets me node 8.11.4 and npm 5.6.0 and Node-RED with serialport.  
Then

- `cd ~/.node-red && npm i node-red-node-arduino`
- `node-red-stop && node-red-star`t

And then I have both serial and arduino nodes.

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [20 August 2018 09:46 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/20 "2018-08-20T09:46:15Z")

</div>

> [@dceejay](#):
>
> That gets me node 8.11.4 and **npm 5.6.0**

Careful with that version of npm, [I had problems with it only a few days ago](https://node-red.slack.com/archives/C03M2TAQ8/p1534461492000100) which is caused [by this npm issue](https://github.com/npm/npm/issues/19356).  
`sudo npm install -g npm@5` gets you npm version 5.10.0 which resolves the issue.

Paul

---

<div class="post-metadata">

**Author:** ![scargill](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scargill/32/1118_2.png) [@scargill](https://discourse.nodered.org/u/scargill)\
**Post date:** [20 August 2018 10:24 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/21 "2018-08-20T10:24:29Z")

</div>

Something sadly wrong at my end then. Node 8.11.4 samer as Dave but npm –v returns 1.4.21

Any ideas anyone?

[Next page](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389.md?page=2)
