# Node won't install, please help

**URL:** <https://discourse.nodered.org/t/node-wont-install-please-help/11839>\
**Category:** General\
**Created:** [4 June 2019 11:46 UTC](https://discourse.nodered.org/t/node-wont-install-please-help/11839 "2019-06-04T11:46:00Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![jaffaman](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jaffaman](https://discourse.nodered.org/u/jaffaman)\
**Post date:** [15 June 2019 12:25 UTC](https://discourse.nodered.org/t/node-wont-install-please-help/11839/21 "2019-06-15T12:25:55Z")

</div>

I am having similar issue here with installing node-red-contrib-raspihats  
here is what I am noticing:  
2019-06-04T21:42:54.436Z [err] npm  
2019-06-04T21:42:54.437Z [err] ERR! path /home/pi/.node-red/node\_modules/function-plot  
It seems that the npm is trying to locate this folder unsuccessfully. I looked in my pi and sure enough this folder do not exist. My .node-red folder is located in ~/ and not in ~/pi/  
Not sure how to correct this yet!

---

<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:** [15 June 2019 12:42 UTC](https://discourse.nodered.org/t/node-wont-install-please-help/11839/22 "2019-06-15T12:42:54Z")

</div>

Can you copy/paste the npm command you are running and the full output please.  
Also run `npm -v` and `node -v`  
The default location of the .node-red folder _is_ ~/.node-red. Usually this is /home/pi/.node-red, do you mean you are running as a user other than pi? If so then it should be /home/username/.node-red.

---

<div class="post-metadata">

**Author:** ![jaffaman](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jaffaman](https://discourse.nodered.org/u/jaffaman)\
**Post date:** [15 June 2019 13:02 UTC](https://discourse.nodered.org/t/node-wont-install-please-help/11839/23 "2019-06-15T13:02:30Z")

</div>

Here is the version info:  
pi@raspberrypi:~ $ npm -v  
6.9.0

pi@raspberrypi:~ $ node -v  
v8.11.1

My command is  
pi@raspberrypi:~/.node-red $ npm install node-red-contrib-raspihats  
npm ERR! path /home/pi/.node-red/node\_modules/function-plot  
npm ERR! code EISGIT  
npm ERR! git /home/pi/.node-red/node\_modules/function-plot: Appears to be a git repo or submodule.  
npm ERR! git /home/pi/.node-red/node\_modules/function-plot  
npm ERR! git Refusing to remove it. Update manually,  
npm ERR! git or move it out of the way first.

npm ERR! A complete log of this run can be found in:  
npm ERR! /home/pi/.npm/\_logs/2019-06-15T13\_00\_56\_904Z-debug.log

Never mind the path comment from my post, that was a mix up from my part. I am using the user 'pi'

---

<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:** [15 June 2019 13:11 UTC](https://discourse.nodered.org/t/node-wont-install-please-help/11839/24 "2019-06-15T13:11:32Z")

</div>

Try deleting this folder: `/home/pi/.node-red/node_modules/function-plot` manually with

```auto
rm -r /home/pi/.node-red/node_modules/function-plot

```

Then reinstalling node-red-contrib-raspihats. If that doesn't work, you probably need to raise an issue against that node.

---

<div class="post-metadata">

**Author:** ![jaffaman](https://avatars.discourse-cdn.com/v4/letter/j/977dab/32.png) [@jaffaman](https://discourse.nodered.org/u/jaffaman)\
**Post date:** [15 June 2019 13:20 UTC](https://discourse.nodered.org/t/node-wont-install-please-help/11839/25 "2019-06-15T13:20:26Z")

</div>

This did work! Thank you  
I deleted that folder  
rm -r /home/pi/.node-red/node\_modules/function-plot  
Then I installed the node from the node pallet.  
Cheers!

[Previous page](https://discourse.nodered.org/t/node-wont-install-please-help/11839.md?page=1)
