michbeck100 / pimatic-hap

Pimatic homekit bridge
GNU General Public License v2.0
30 stars 10 forks source link

Cannot find module 'hap-nodejs/node_modules/debug' #72

Closed Calprainn closed 7 years ago

Calprainn commented 7 years ago

After a fresh install of pimatic (on Ubuntu 16.04.2 LTS) I tried to install pimatic-hap (and get the follow message):

npm install pimatic-hap
/calprainn/pimatic-app
└── pimatic-hap@0.10.0

npm WARN enoent ENOENT: no such file or directory, open '/root/pimatic-app/package.json'
npm WARN pimatic-app No description
npm WARN pimatic-app No repository field.
npm WARN pimatic-app No README data
npm WARN pimatic-app No license field.

When I restart pimatic I got this error message: error [pimatic]: Cannot find module 'hap-nodejs/node_modules/debug'

The debug option is turned OFF in the plugin settings of pimatic-hap.

Any ideas?

michbeck100 commented 7 years ago

Please checkif the folder node_modules/pimatic-hap/node_modules/hap-nodejs/node_modules/debug in your pimatic-app folder exists. If not please remove the complete pimatic-hap folder from node_modules and restart pimatic. It should start a new install then.

Calprainn commented 7 years ago

For whatever reason, the debug folder wasn't there. I remove and reinstall hap-nodejs ("npm install hap-nodejs") and cloning pimatic-app from github both into the node_modules folder and run "npm install" by both. After restart pimatic-hap runs like a charm. Thanks!! :)