# I messed up installation

**URL:** <https://discourse.nodered.org/t/i-messed-up-installation/15982>\
**Category:** General\
**Created:** [27 September 2019 08:18 UTC](https://discourse.nodered.org/t/i-messed-up-installation/15982 "2019-09-27T08:18:35Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![adi-dev](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/adi-dev/32/12511_2.png) [@adi-dev](https://discourse.nodered.org/u/adi-dev)\
**Post date:** [1 October 2019 22:58 UTC](https://discourse.nodered.org/t/i-messed-up-installation/15982/21 "2019-10-01T22:58:41Z")

</div>

Hmm, there is no `node-red` in `/usr/lib/node_modules`  
there is only one folder: `npm`

---

<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:** [1 October 2019 23:01 UTC](https://discourse.nodered.org/t/i-messed-up-installation/15982/22 "2019-10-01T23:01:11Z")

</div>

ok - lets go with `sudo ln -s .npm-global/bin/node-red /usr/bin/node-red`

PS - I have never seen this before... I have no idea how it got here...

---

<div class="post-metadata">

**Author:** ![adi-dev](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/adi-dev/32/12511_2.png) [@adi-dev](https://discourse.nodered.org/u/adi-dev)\
**Post date:** [1 October 2019 23:04 UTC](https://discourse.nodered.org/t/i-messed-up-installation/15982/23 "2019-10-01T23:04:28Z")

</div>

That's what is worring me - again, when I try to install without using docker, there something messed up. Additionally, all retentive `context` data

---

<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:** [1 October 2019 23:42 UTC](https://discourse.nodered.org/t/i-messed-up-installation/15982/24 "2019-10-01T23:42:54Z")

</div>

All your flows should be safe in your .node-red directory, so don't touch that. (Or do but only to back it up).

---

<div class="post-metadata">

**Author:** ![adi-dev](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/adi-dev/32/12511_2.png) [@adi-dev](https://discourse.nodered.org/u/adi-dev)\
**Post date:** [2 October 2019 00:53 UTC](https://discourse.nodered.org/t/i-messed-up-installation/15982/25 "2019-10-02T00:53:18Z")

</div>

Sorry about the last one - I just realized, I didn't backup `settings.js` so it defaults to not using the context storage in local file system. Plus all my authentication and SSL has gone in the bit, tuff, I was so focused on getting npm right I missed this. So far, it's back as the service. I noticed, one of the nodes stop working - [node-red-contrib-modbus](https://flows.nodered.org/node/node-red-contrib-modbus), I think i t has something to do with parallel tasking, but it's time to bed now (2am my time 😉 ) Thanks for help @dceejay and @afelix

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [2 October 2019 06:33 UTC](https://discourse.nodered.org/t/i-messed-up-installation/15982/26 "2019-10-02T06:33:32Z")

</div>

Just as aside - I had a problem with a Node-RED install on one of Pi - couldn't seem to sort it

So I used this

> [@New Utility: alternate-node-red-installer](https://discourse.nodered.org/t/new-utility-alternate-node-red-installer/13490):
>
> Hi all, as I'm needing to install some clean installations of Node-RED for testing, I thought that I would finally get round to writing a proper tool for installing multiple independent instances of Node-RED. I've just finished that off and published to GitHub and npm so you should be able to use it straight away if you have a need for such a thing. It gives you a command-line installer that takes a single parameter controlling the root folder for installation. It should work on all platforms. …

to create a separate running instance (changed port to 1881 in settings.js so it didn't conflict with original ) and got my flows working in it

I then eventually sorted the original one later on

[Previous page](https://discourse.nodered.org/t/i-messed-up-installation/15982.md?page=1)
