# Problem Installing node-red-node-pi-gpiod

**URL:** <https://discourse.nodered.org/t/problem-installing-node-red-node-pi-gpiod/46935>\
**Category:** General\
**Created:** [9 June 2021 17:28 UTC](https://discourse.nodered.org/t/problem-installing-node-red-node-pi-gpiod/46935 "2021-06-09T17:28:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hessianerd](https://avatars.discourse-cdn.com/v4/letter/h/82dd89/32.png) [@Hessianerd](https://discourse.nodered.org/u/Hessianerd)\
**Post date:** [9 June 2021 17:28 UTC](https://discourse.nodered.org/t/problem-installing-node-red-node-pi-gpiod/46935/1 "2021-06-09T17:28:04Z")

</div>

When I try to add the pi-gpiod node from the web interface I get an "Error Install failed" message, with the following message in the event log:

> "added 15 packages from 3 contributors and removed 302 packages in 128.052s"

I have trouble with node red and end up reinstalling.

when I try to install it from the command line

```auto
npm install node-red-node-pi-gpiod

```

I get the following:

```auto
`npm WARN saveError ENOENT: no such file or directory, open '/root/package.json'`

`npm WARN enoent ENOENT: no such file or directory, open '/root/package.json'`

`npm WARN root No description`

`npm WARN root No repository field.`

`npm WARN root No README data`

`npm WARN root No license field.`

`+ node-red-node-pi-gpiod@0.4.0updated 1 package and audited 24 packages in 16.736s found 3 low severity vulnerabilities run \` npm audit fix` to fix them, or `npm audit` for details`

```

I tried the audit but it tells me `audit No package.json found: Cannot audit a project without a package.json`

any advice to next steps?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [9 June 2021 17:37 UTC](https://discourse.nodered.org/t/problem-installing-node-red-node-pi-gpiod/46935/2 "2021-06-09T17:37:37Z")

</div>

You need to `cd` to the .node-red folder before running npm

---

<div class="post-metadata">

**Author:** ![Hessianerd](https://avatars.discourse-cdn.com/v4/letter/h/82dd89/32.png) [@Hessianerd](https://discourse.nodered.org/u/Hessianerd)\
**Post date:** [10 June 2021 01:01 UTC](https://discourse.nodered.org/t/problem-installing-node-red-node-pi-gpiod/46935/3 "2021-06-10T01:01:02Z")

</div>

Ok, just one problem. I don't see that directory in ~ I see a node\_modules but I assume that is because I ran the previous npm command there.

I am using dietpi and it had an install script to install node red as a service.

I tried to find it

`find / -type d -name ". node-red"'

No dice.

Thanks for the help

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [10 June 2021 08:07 UTC](https://discourse.nodered.org/t/problem-installing-node-red-node-pi-gpiod/46935/4 "2021-06-10T08:07:42Z")

</div>

What script did you use to install node-red?

---

<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:** [10 June 2021 12:24 UTC](https://discourse.nodered.org/t/problem-installing-node-red-node-pi-gpiod/46935/5 "2021-06-10T12:24:19Z")

</div>

try  
`find / -type d -name .node-red`

(you had a space between . and node-red )

---

<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:** [9 August 2021 12:24 UTC](https://discourse.nodered.org/t/problem-installing-node-red-node-pi-gpiod/46935/6 "2021-08-09T12:24:25Z")

</div>

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