Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Error: Cannot find module '/usr/local/lib/node_modules/homebridge-smartthings-v2/index.js' #431

Open
1 task done
BUMPRW opened this issue Apr 10, 2021 · 2 comments
Open
1 task done
Assignees
Labels
bug Something isn't working as expected

Comments

@BUMPRW
Copy link

BUMPRW commented Apr 10, 2021

Verify the following before opening an trouble issue

Go over all the following points, and put an x in all the boxes that apply.
If you're unsure about any of these, don't hesitate to ask. We're here to help!

  • That OAuth is Enabled for the SmartApp under the IDE.
  • [x ] The SmartApp and Device Handler are using the latest code available.
  • [x ] That Both the SmartApps and Device Handlers have been Published for You in the IDE.

About Your Setup

  • How many devices are detected?:
  • Mobile App Version(Not required):
  • SmartApp Version:
  • Device Handler Version:
  • Homebridge Version:
  • NodeJS Version:

Expected Behavior

Tell us what you think should be happening

Current Behavior

What happens instead of the expected behavior?

Steps to Reproduce (for bugs)

Provide a link to a live example, or an unambiguous set of steps to reproduce this bug. Include code to reproduce, if relevant

Context

**How has this issue affected you? What are you trying to accomplish?
Providing context helps us come up with a solution that is most useful in the real world


Please include a copy of any relevant log output to assist in tracking down the [4/10/2021, 1:45:16 AM] ====================
[4/10/2021, 1:45:16 AM] ERROR LOADING PLUGIN homebridge-smartthings-v2:
[4/10/2021, 1:45:16 AM] Error: Cannot find module '/usr/local/lib/node_modules/homebridge-smartthings-v2/index.js'
Require stack:

  • /usr/local/lib/node_modules/homebridge/lib/plugin.js
  • /usr/local/lib/node_modules/homebridge/lib/pluginManager.js
  • /usr/local/lib/node_modules/homebridge/lib/server.js
  • /usr/local/lib/node_modules/homebridge/lib/cli.js
  • /usr/local/lib/node_modules/homebridge/bin/homebridge
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:925:15)
    at Function.Module._load (node:internal/modules/cjs/loader:769:27)
    at Module.require (node:internal/modules/cjs/loader:997:19)
    at require (node:internal/modules/cjs/helpers:92:18)
    at Plugin.load (/usr/local/lib/node_modules/homebridge/src/plugin.ts:187:27)
    at /usr/local/lib/node_modules/homebridge/src/pluginManager.ts:126:16
    at Map.forEach ()
    at PluginManager.initializeInstalledPlugins (/usr/local/lib/node_modules/homebridge/src/pluginManager.ts:124:18)
    at Server.start (/usr/local/lib/node_modules/homebridge/src/server.ts:156:24)
    [4/10/2021, 1:45:16 AM] ====================
@BUMPRW BUMPRW added the bug Something isn't working as expected label Apr 10, 2021
@BUMPRW
Copy link
Author

BUMPRW commented Apr 10, 2021

I checked index.js isn't there

@HonbraDev
Copy link

HonbraDev commented Jun 9, 2021

Same, to fix the problem, just edit the main property in package.json from index.js to src/index.js.

obrazek

EDIT: The issue has been fixed in the repo, the author just needs to push the latest version to npm.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

3 participants