chrisjshull / homebridge-nest

Nest plugin for HomeBridge
707 stars 111 forks source link

Google Account - Refresh Token #520

Closed Sponitz closed 2 years ago

Sponitz commented 2 years ago

When attempting to follow the node login.js command in my module. I am getting a "cannot find module error. Tried verifying node was working correctly, which it was. Kind of confused. Any assistance would be appreciated

Screen Shot 2022-02-25 at 3 00 47 AM

.

adriancable commented 2 years ago

My suggestion is that you run node login.js in the directory the plug-in is located (which you've correctly found is /mnt/user/appdata/homebridge/node_modules/homebridge-nest), rather than in some other directory where it isn't located (/root), which will not work.

Sponitz commented 2 years ago

My suggestion is that you run node login.js in the directory the plug-in is located (which you've correctly found is /mnt/user/appdata/homebridge/node_modules/homebridge-nest), rather than in some other directory where it isn't located (/root), which will not work.

You’re very correct. I forgot to change the cd to the directory. Thanks for the help! :)