This is the forum archive of Homey. For more information about Homey, visit the Official Homey website.

The Homey Community has been moved to https://community.athom.com.

This forum is now read-only for archive purposes.
Closed

athom-cli error "Error: Cannot find module 'commander'"

spamenigmaspamenigma Member
edited March 2016 in Archive
Hi

Trying to go through the steps to install test apps and getting stuck early on... Can anyone advise please?

Using Windows 10, following the guide: https://developers.athom.com/library/getting-started/
Installed nodejs v5.7.1 stable
ran command prompt as administrator
typed 'npm install -g athom-cli'

Now no matter what I seem to try I continue to get the following:

C:\WINDOWS\system32>athom
module.js:341
    throw err;
    ^

Error: Cannot find module 'commander'
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (C:\Users\Paul\AppData\Roaming\npm\node_modules\athom-
cli\app.js:6:16)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
Tried adding "C:\Users\Paul\AppData\Roaming\npm\node_modules" to my path.. not sure what step I'm missing.

Any help appreciated! Thanks.

Comments

  • Yup, same here - weird thing is, I had it working a couple of weeks ago, on a machine that no longer exists :)
  • EmileEmile Administrator, Athom
    That's odd! Can you do an npm uninstall -g athom-cli first and try again?
  • Threw away a snapshot and now it works! Guess an uninstall would have been enough but hey :)

    Thanks for the help!

  • uninstall and install again worked! thanks :)
This discussion has been closed.