# 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:** 12\
**Page:** 2

<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 10:39 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/22 "2018-08-20T10:39:17Z")

</div>

You could always update npm.  
`sudo npm install -g npm@5`

---

<div class="post-metadata">

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

</div>

Is it possible you in stalled it in two places? maybe locally and globally? Im not sure how to tell byt what does `which npm` show? that will give you th location of at least one of them.

---

<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:** [20 August 2018 10:48 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/24 "2018-08-20T10:48:11Z")

</div>

> [@scargill](#):
>
> Something sadly wrong at my end then. Node 8.11.4 samer as Dave but npm –v returns 1.4.21

Did you install in the same way @dceejay did?

---

<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 11:02 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/25 "2018-08-20T11:02:46Z")

</div>

Thanks for your patience guys, I think we screwed the npm install in my script.. now put new version up – it was old npm stopping serial I think. Reinstall will take a little while

Pete

---

<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 11:29 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/26 "2018-08-20T11:29:07Z")

</div>

Here you say;

> [@scargill](#):
>
> Paul, - Npm 8.x

...and here you say;

> [@scargill](#):
>
> but npm –v returns 1.4.21

?

---

<div class="post-metadata">

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

</div>

> [@scargill](#):
>
> Thanks for your patience guys, I think we screwed the npm install in my script.. now put new version up – it was old npm stopping serial I think. Reinstall will take a little while
> 
> Pete

Do you install `node-red-contrib-npm` in your script?

what is the output of:

```auto
find /home/pi/.node-red/node_modules/np*

```

---

<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 13:00 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/28 "2018-08-20T13:00:31Z")

</div>

No, we have a long developed script which does NR and lots of other stuff, but there is a bug in current version.

---

<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 13:01 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/29 "2018-08-20T13:01:44Z")

</div>

Sorry I meant node which is 8.odd… npm was wrong one, way to early. Fixed that but currently working on another issue

---

<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 13:57 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/30 "2018-08-20T13:57:44Z")

</div>

Yes, is it troublesome?

---

<div class="post-metadata">

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

</div>

I had some issues on a RPi where the `node-red-contrib-npm`was installed.

The `node-red-contrib-npm` will also install npm v2.15.12 in `.node-red/node_modules/npm`

So the question is: which npm does node-red use when installing/uninstalling using the manage-palette or if you install/uninstall a node in the folder .node-red ?

---

<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 14:58 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/32 "2018-08-20T14:58:03Z")

</div>

It uses whatever is in the path for the user that is running node-red. So hopefully nowadays 5.x or 6.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:** [20 August 2018 18:03 UTC](https://discourse.nodered.org/t/new-installation-full-raspbian-today/2389/33 "2018-08-20T18:03:07Z")

</div>

and hopefully I'm on the way to a working setup, sorry for the hassle but that install of an old npm is worth being aware of. "the SCRIPT" will now work but good idea to run Dave CJs script later to get rid of any globally loaded nodes and replace with local versions.

`wget --no-check-certificate https://bitbucket.org/api/2.0/snippets/scargill/ekon6o/master/files/script.sh`

I load and run the script as root and after a couple of mins it asks you to log out and log in as PI... at which point it makes a copy. In both cases "bash script.sh" works.. this installs a LOT more than nr, inc Mosquitto, SQLITE, APACHE, PHP, Grafana and more, on more than just Raspberry PI, discussed in the blog at [https://tech.scargill.net](https://tech.scargill.net) undser item "the script".- I hope someone finds this useful. All was fine until Pi and NR upgrades, issues now hopefully sorted. Usually, any problems come from the other scripts we end up calling - like the serial port script. Right now, I'm not seeing any issues with the install.

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