# New Utility: alternate-node-red-installer

**URL:** <https://discourse.nodered.org/t/new-utility-alternate-node-red-installer/13490>\
**Category:** Share Your Projects\
**Created:** [19 July 2019 18:07 UTC](https://discourse.nodered.org/t/new-utility-alternate-node-red-installer/13490 "2019-07-19T18:07:20Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![tree-frog](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tree-frog/32/89303_2.png) [@tree-frog](https://discourse.nodered.org/u/tree-frog)\
**Post date:** [6 August 2021 16:47 UTC](https://discourse.nodered.org/t/new-utility-alternate-node-red-installer/13490/21 "2021-08-06T16:47:46Z")

</div>

@TotallyInformation,  
So, I copied the folders from my other system (installation using your installer)  
package.json  
package-lock.json  
\bin  
\data  
\system

and it runs my installed nodes in the current version Node-RED 2.0.5  
Command line...

```auto
"C:/Program Files/nodejs/node.exe" c:/nodered/node_modules/node-red/red.js --userDir c:/nodered/data

```

Thank you for your support.

---

<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:** [1 November 2021 12:18 UTC](https://discourse.nodered.org/t/new-utility-alternate-node-red-installer/13490/22 "2021-11-01T12:18:53Z")

</div>

[Edit - I may have realised what I've done wrong so hold off answering this!]

@TotallyInformation  
Hi Julian  
I've tried copying over an alternate 1.3.5 install from my Win machine to a Pi 4

I copied the whole folder and then ran npm update from within it

Got a few errors with missing nodes and stuff like that but sorted them out by re-installing them and it started up 🙂  
However - there's a problem with credentials ☹

```auto
1 Nov 12:05:02 - [warn] Error loading credentials: SyntaxError: Unexpected token � in JSON at position 0
1 Nov 12:05:02 - [warn] Error loading flows: Error: Failed to decrypt credentials
1 Nov 12:05:02 - [info] Starting flows
1 Nov 12:05:02 - [error] [twitter in:8ea077ce.03d5b8] missing twitter credentials
1 Nov 12:05:02 - [error] [twitter in:d61c4ef7.507ed] missing twitter credentials
1 Nov 12:05:02 - [error] [twitter in:f1bbe5c9.23deb8] missing twitter credentials
1 Nov 12:05:03 - [error] [pushover:8ed4a7e8.d67068] No Pushover api token set
1 Nov 12:05:03 - [error] [pushover:8ed4a7e8.d67068] No Pushover user key set
1 Nov 12:05:03 - [error] [e-mail in:fb3d2ae6.d89b78] No e-mail userid set
1 Nov 12:05:03 - [error] [e-mail in:fb3d2ae6.d89b78] No e-mail password set
1 Nov 12:05:03 - [error] [PushStaq:d7ec7657.60c368] API Key is not defined, aborting.
1 Nov 12:05:03 - [warn] [dropbox out:44702648.1f2418] Missing dropbox credentials
1 Nov 12:05:03 - [warn] [telegram receiver:c11dd2b1.5009] bot not initialized
1 Nov 12:05:03 - [error] [pushover:1d8c00f7.87f97f] No Pushover api token set
1 Nov 12:05:03 - [error] [pushover:1d8c00f7.87f97f] No Pushover user key set
1 Nov 12:05:03 - [error] [pushover:f6c57dd5.16a2e] No Pushover api token set
1 Nov 12:05:03 - [error] [pushover:f6c57dd5.16a2e] No Pushover user key set

```

and my whole point of doing the wholesale copying was to keep my credentials and configs

Any idea as to why the error?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [1 November 2021 12:39 UTC](https://discourse.nodered.org/t/new-utility-alternate-node-red-installer/13490/23 "2021-11-01T12:39:55Z")

</div>

> [@cymplecy](#):
>
> I copied the whole folder and then ran npm update from within it

Hi Simon, you can't just get away with an `npm update` when changing platforms bacause none of the compiled libraries will work.

The best thing to do is to copy everything _except_ `node_modules` for both the root (node-red) and userDir folders. Then in both folders, do an `npm install`. Which I think that you've already discovered.

In regard to the other error, that looks like a codepage/language issue. How did you do the copy? Maybe open the file in VScode and see what encoding and linefeed setting it has:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/d/1dbba74ea7047628413ca1acb21f5cddd00c1e83.png)

---

<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:** [1 November 2021 15:25 UTC](https://discourse.nodered.org/t/new-utility-alternate-node-red-installer/13490/24 "2021-11-01T15:25:46Z")

</div>

Re-credentials - I'd forgotten that unless you've set a secret - the credentials are tied to the original machine

It only took me about 20 mins to re-enter them (Twitter,Dropbox and Pushover) so I'm sorted with that 🙂

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [1 November 2021 15:28 UTC](https://discourse.nodered.org/t/new-utility-alternate-node-red-installer/13490/25 "2021-11-01T15:28:15Z")

</div>

Ah, yes I'd forgotten that as well. I always have that set so I never think about it (the warning msg triggers my OCD!)/

[Previous page](https://discourse.nodered.org/t/new-utility-alternate-node-red-installer/13490.md?page=1)
