# Failing installing node-mcp23017

**URL:** <https://discourse.nodered.org/t/failing-installing-node-mcp23017/20144>\
**Category:** General\
**Created:** [9 January 2020 23:28 UTC](https://discourse.nodered.org/t/failing-installing-node-mcp23017/20144 "2020-01-09T23:28:28Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![vlturner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/vlturner/32/15211_2.png) [@vlturner](https://discourse.nodered.org/u/vlturner)\
**Post date:** [12 January 2020 04:44 UTC](https://discourse.nodered.org/t/failing-installing-node-mcp23017/20144/17 "2020-01-12T04:44:38Z")

</div>

I am using MCP23017 but had t do a lot to get it working.

The best way to get it working is that you have to be in the directory node-red is installed on,

My directory is /hom/pi/.node-red

npm install i2c-bus@5.1.0

├─┬ i2c-bus@5.1.0  
│ ├── bindings@1.5.0 deduped  
│ └── nan@2.14.0 deduped (git+https://github.com/nodejs/nan.git#60e86a9d4c4536fbbd2a76814470edd66b23114e)  
├── nan@2.14.0 (git+https://github.com/nodejs/nan.git#60e86a9d4c4536fbbd2a76814470edd66b23114e)

You can see I also loaded the latest version of nan@2.14.0 to fix some warnings.

Also install ncd-red-comm@1.6.9 because they all link to it.

This installs all the NCD nodes

npm i $(npm search --parseable ncd-red | cut -f 1)

Once all the packages are installed remember to run npm dedupe and npm rebuild

Once that's done you reboot the system so node-red pulls in the local node\_modules files and it should show up in the admin console.

 ![Node-Red-Console](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/6/c6a3503e806c0689060cc19085d3b8657498eb9c.jpeg)

I can help if you get stuck.

---

_[View the full topic](https://discourse.nodered.org/t/failing-installing-node-mcp23017/20144)._
