# Help Wanted - testing updated install script

**URL:** <https://discourse.nodered.org/t/help-wanted-testing-updated-install-script/45685>\
**Category:** General\
**Created:** [15 May 2021 14:57 UTC](https://discourse.nodered.org/t/help-wanted-testing-updated-install-script/45685 "2021-05-15T14:57:00Z")\
**Posts on this page:** 6\
**Page:** 5

<div class="post-metadata">

**Author:** ![fellinga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fellinga/32/30631_2.png) [@fellinga](https://discourse.nodered.org/u/fellinga)\
**Post date:** [30 July 2021 21:35 UTC](https://discourse.nodered.org/t/help-wanted-testing-updated-install-script/45685/81 "2021-07-30T21:35:16Z")

</div>

Okay so not sure why but the `/var/log/nodered-install.log` file is empty. But it seems that `/var/log/nodered-install.log.1` has the valid information...

```auto
Already have nodejs v14.17.0
OLD nodejs 14 :
NEW nodejs :

***************************************

Started : Thu 29 Jul 2021 10:33:36 PM CEST
Running for user debian at /home/debian
Found global nodes: :

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package nodered

Versions: node:v10.24.0 npm:5.8.0
Now install Node-RED 
npm WARN npm npm does not support Node.js v10.24.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
npm WARN notice [SECURITY] bcrypt has the following vulnerability: 1 low. Go here for more details: https://www.npmjs.com/advisories?search=bcrypt&version=5.0.1 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
/usr/local/bin/node-red -> /usr/local/lib/node_modules/node-red/red.js
/usr/local/bin/node-red-pi -> /usr/local/lib/node_modules/node-red/bin/node-red-pi

> bcrypt@5.0.1 install /usr/local/lib/node_modules/node-red/node_modules/bcrypt
> node-pre-gyp install --fallback-to-build

[bcrypt] Success: "/usr/local/lib/node_modules/node-red/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node" is installed via remote
npm WARN ws@7.5.1 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
npm WARN ws@7.5.1 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.

+ node-red@2.0.4
added 290 packages from 369 contributors in 26.133s
2.0.4 
Now create basic package.json for the user and move any global nodes
Now add the shortcut and start/stop/log scripts to the menu
Now add systemd script and configure it for debian
ln: failed to create symbolic link '/usr/bin/python': File exists
Now add launcher to top bar, add cpu temp example, make sure ping works
Memory : 11G
Started : Thu 29 Jul 2021 10:33:36 PM CEST 
Finished: Thu 29 Jul 2021 10:34:13 PM CEST

```

The command `node -v` outputs `v10.24.0`:  
 ![0](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/f/1f224f874d369c519cf49468e11b5ad3a3e1d5ab.jpeg)

but when I type `n` i receive:  
 ![1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/c/dcaf60f2efad1ae0cae7b8dcaa4c45507d070323.jpeg)

---

<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:** [30 July 2021 21:49 UTC](https://discourse.nodered.org/t/help-wanted-testing-updated-install-script/45685/82 "2021-07-30T21:49:44Z")

</div>

Ah right so yes you are using n.  
Ok I need to look at/ fix that.  
Generally we advise against using n or nvm as that can cause issues when trying to run as a service ( on boot) but I should at least catch and warn about it.

---

<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:** [31 July 2021 00:35 UTC](https://discourse.nodered.org/t/help-wanted-testing-updated-install-script/45685/83 "2021-07-31T00:35:49Z")

</div>

Looks like node.js 10.24 is expecting npm v6 not v5 so somehow you have a disconnect between npm versions.

---

<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:** [31 July 2021 07:37 UTC](https://discourse.nodered.org/t/help-wanted-testing-updated-install-script/45685/84 "2021-07-31T07:37:19Z")

</div>

That is the normal error message you get when using the deb version of nodejs10

---

<div class="post-metadata">

**Author:** ![fellinga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fellinga/32/30631_2.png) [@fellinga](https://discourse.nodered.org/u/fellinga)\
**Post date:** [1 August 2021 17:55 UTC](https://discourse.nodered.org/t/help-wanted-testing-updated-install-script/45685/85 "2021-08-01T17:55:31Z")

</div>

FYI @dceejay - I changed nothing on the machine and the script now detects everything as expected.

 ![1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/0/f0568ea1a963234f92e8d2a937ec8e273b1c864e.jpeg)

After passing `--node14` the script finished without any errors.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [30 September 2021 17:56 UTC](https://discourse.nodered.org/t/help-wanted-testing-updated-install-script/45685/86 "2021-09-30T17:56:21Z")

</div>

Closed on 30 September 2021 17:56 UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/help-wanted-testing-updated-install-script/45685.md?page=4)
