# Unable-to-install-node-red-missing-node-js-and-npm-stops-installation

**URL:** <https://discourse.nodered.org/t/unable-to-install-node-red-missing-node-js-and-npm-stops-installation/60161>\
**Category:** General\
**Tags:** node-red-dashboard\
**Created:** [21 March 2022 17:18 UTC](https://discourse.nodered.org/t/unable-to-install-node-red-missing-node-js-and-npm-stops-installation/60161 "2022-03-21T17:18:54Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Syed](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@Syed](https://discourse.nodered.org/u/Syed)\
**Post date:** [21 March 2022 17:18 UTC](https://discourse.nodered.org/t/unable-to-install-node-red-missing-node-js-and-npm-stops-installation/60161/1 "2022-03-21T17:18:54Z")

</div>

Running Node-RED install for user pi at /home/pi on debian

This can take 20-30 minutes on the slower Pi versions - please wait.

Stop Node-RED ✔  
Remove old version of Node-RED ✔  
Remove old version of Node.js ✔ v10.24.0  
Install Node.js 16 LTS ✘ Bad install: Node.js v10.24.0 Npm missing - Exitcache  
Install Node-RED core  
Move global nodes to local  
Npm rebuild existing nodes  
Install extra Pi nodes  
Add shortcut commands  
Update systemd script

Any errors will be logged to /var/log/nodered-install.log

Can anyone help me to solve this I do almost thing just like update ,full upgrade , install npm please anyone suggest me to how to solve this problem.

---

<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:** [21 March 2022 19:35 UTC](https://discourse.nodered.org/t/unable-to-install-node-red-missing-node-js-and-npm-stops-installation/60161/2 "2022-03-21T19:35:54Z")

</div>

Welcome to the forum @Syed

This may indicate a problem with installing packages on your system. Please open a terminal and run  
`sudo apt update && sudo apt full-upgrade`  
and see if it shows any problems.

---

<div class="post-metadata">

**Author:** ![Syed](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@Syed](https://discourse.nodered.org/u/Syed)\
**Post date:** [25 March 2022 16:28 UTC](https://discourse.nodered.org/t/unable-to-install-node-red-missing-node-js-and-npm-stops-installation/60161/3 "2022-03-25T16:28:17Z")

</div>

I did this but Collin my issue was not resolved any other option for this

---

<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:** [25 March 2022 16:46 UTC](https://discourse.nodered.org/t/unable-to-install-node-red-missing-node-js-and-npm-stops-installation/60161/4 "2022-03-25T16:46:59Z")

</div>

Run the script again, then post the log. It tells you where that is when it finishes.

---

<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:** [25 March 2022 17:29 UTC](https://discourse.nodered.org/t/unable-to-install-node-red-missing-node-js-and-npm-stops-installation/60161/5 "2022-03-25T17:29:15Z")

</div>

first do an uninstall of any nodejs - `sudo apt purge nodejs npm` - then re-run the script but add the parameter - `--node14` to force it to install node14 first.

---

<div class="post-metadata">

**Author:** ![Syed](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@Syed](https://discourse.nodered.org/u/Syed)\
**Post date:** [26 March 2022 13:31 UTC](https://discourse.nodered.org/t/unable-to-install-node-red-missing-node-js-and-npm-stops-installation/60161/6 "2022-03-26T13:31:54Z")

</div>

Running Node-RED install for user pi at /home/pi on debian

/lib/ld-linux-armhf.so.3: No such file or directory  
/lib/ld-linux-armhf.so.3: No such file or directory  
/lib/ld-linux-armhf.so.3: No such file or directory

This can take 20-30 minutes on the slower Pi versions - please wait.

Stop Node-RED ✔  
Remove old version of Node-RED ✔  
Using N to manage Node.js +  
Update Node.js 14 ✘ Bad install: Node.js missing Npm missing - Exit cache  
Install Node-RED core  
Move global nodes to local  
Npm rebuild existing nodes  
Install extra Pi nodes  
Add shortcut commands  
Update systemd script

Any errors will be logged to /var/log/nodered-install.log

---

<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:** [26 March 2022 18:52 UTC](https://discourse.nodered.org/t/unable-to-install-node-red-missing-node-js-and-npm-stops-installation/60161/7 "2022-03-26T18:52:54Z")

</div>

That isn't the log I asked for, though it is interesting.

> [@Syed](#):
>
> Any errors will be logged to /var/log/nodered-install.log

**[Edit]** If that file is now empty it is because the log files have been rotated since it was created. Run this command to find the most recent non-empty log file.  
`ls -l /var/log/nodered*`

---

<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:** [26 March 2022 20:34 UTC](https://discourse.nodered.org/t/unable-to-install-node-red-missing-node-js-and-npm-stops-installation/60161/8 "2022-03-26T20:34:10Z")

</div>

> [@Syed](#):
>
> /lib/ld-linux-armhf.so.3: No such file or directory

I wonder if this is because you are using Debian rather than Raspbian. Which debian image did you install?

---

<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:** [26 March 2022 21:05 UTC](https://discourse.nodered.org/t/unable-to-install-node-red-missing-node-js-and-npm-stops-installation/60161/9 "2022-03-26T21:05:13Z")

</div>

Is there a reason you need to run N to manage node ? In general we find it causes more problems than it solves.

---

<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:** [26 March 2022 21:39 UTC](https://discourse.nodered.org/t/unable-to-install-node-red-missing-node-js-and-npm-stops-installation/60161/10 "2022-03-26T21:39:17Z")

</div>

> [@dceejay](#):
>
> Is there a reason you need to run N to manage node

I must be going blind, I missed that.

---

<div class="post-metadata">

**Author:** ![Syed](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@Syed](https://discourse.nodered.org/u/Syed)\
**Post date:** [27 March 2022 05:57 UTC](https://discourse.nodered.org/t/unable-to-install-node-red-missing-node-js-and-npm-stops-installation/60161/11 "2022-03-27T05:57:19Z")

</div>

Any suggestions for solve this problem

---

<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:** [27 March 2022 07:19 UTC](https://discourse.nodered.org/t/unable-to-install-node-red-missing-node-js-and-npm-stops-installation/60161/12 "2022-03-27T07:19:03Z")

</div>

If you want to use N to manage nodejs, then use it to install nodejs 14 and install an appropriate version of npm, then run the script again. If you don't have a need to use N then completely remove it, uninstall nodejs and npm and run the script again.

If it still fails then do what has been asked several times and post the install log which is mentioned at the end of the script output you posted

---

<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:** [27 March 2022 08:33 UTC](https://discourse.nodered.org/t/unable-to-install-node-red-missing-node-js-and-npm-stops-installation/60161/13 "2022-03-27T08:33:01Z")

</div>

Also answer the question about which Debian image you installed. It is difficult to help if you don't answer the questions.

---

<div class="post-metadata">

**Author:** ![k5map](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/k5map/32/47681_2.png) [@k5map](https://discourse.nodered.org/u/k5map)\
**Post date:** [7 April 2022 23:48 UTC](https://discourse.nodered.org/t/unable-to-install-node-red-missing-node-js-and-npm-stops-installation/60161/14 "2022-04-07T23:48:06Z")

</div>

@dceejay ... I'm having the same problem as @Syed. I following your suggestion and run the script & added "--node14". It shows it removed Node.js v14.19.1 but then the next line has the same error "Bad install: Node.js v14.19.1 Npm missing - Exitcache".

Any suggestions on what to do next?

---

<div class="post-metadata">

**Author:** ![k5map](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/k5map/32/47681_2.png) [@k5map](https://discourse.nodered.org/u/k5map)\
**Post date:** [8 April 2022 00:01 UTC](https://discourse.nodered.org/t/unable-to-install-node-red-missing-node-js-and-npm-stops-installation/60161/15 "2022-04-08T00:01:46Z")

</div>

Well I got lucky and solved my issue myself... I ran the script using the "--node16" option and everything installed/upgraded without any errors.

---

<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 June 2022 14:02 UTC](https://discourse.nodered.org/t/unable-to-install-node-red-missing-node-js-and-npm-stops-installation/60161/16 "2022-06-01T14:02:30Z")

</div>

Just had a similiar issue upgrading an old buster image from 2019 and this sorted it #Phew

> [@Unable-to-install-node-red-missing-node-js-and-npm-stops-installation](https://discourse.nodered.org/t/unable-to-install-node-red-missing-node-js-and-npm-stops-installation/60161/5):
>
> first do an uninstall of any nodejs - sudo apt purge nodejs npm - then re-run the script but add the parameter - --node14 to force it to install node14 first.

---

<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:** [31 July 2022 14:02 UTC](https://discourse.nodered.org/t/unable-to-install-node-red-missing-node-js-and-npm-stops-installation/60161/17 "2022-07-31T14:02:36Z")

</div>

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