Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 'MODULE_NOT_FOUND' #1106

Closed
DavidMG01 opened this issue May 26, 2020 · 6 comments
Closed

Error 'MODULE_NOT_FOUND' #1106

DavidMG01 opened this issue May 26, 2020 · 6 comments
Labels

Comments

@DavidMG01
Copy link

I installed mqtt globally on windows 10, but when i type "mqtt -v" getting the following error:

internal/modules/cjs/loader.js:960
throw err;
^

Require stack:

  • C:\Users\DavidMG\AppData\Roaming\npm\node_modules\mqtt\bin\mqtt.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.
    at Function.Module.load (internal/modules/cjs/loader.js:840:27)
    at Module.require (internal/modules/cjs/loader.js:1019:19)
    at require (internal/modules/cjs/helpers.js:77:18)
    at Object. (C:\Users\DavidMG\AppData\Roaming\npm\node
  1. at Module._compile (internal/modules/cjs/loader.js:1133:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:
    /run_main.js:74:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    'C:\Users\DavidMG\AppData\Roaming\npm\node_modules\mqtt\bin\mq
    tt.js'
    ]

When you moved mqtt.js to ./bin, the reference to ./bin/pub and ./bin/sub was lost...

@derberg
Copy link

derberg commented May 27, 2020

Same here on Mac, when I downgrade to 4.0.0 all works fine

@DavidMG01
Copy link
Author

How can I downgrade to 4.0.0.0 or install this specific release??

@jdiamond
Copy link
Contributor

@DavidMG01
Copy link
Author

Thanks a lot!!

@github-actions
Copy link

This is an automated message to let you know that this issue has
gone 365 days without any activity. In order to ensure that we work
on issues that still matter, this issue will be closed in 14 days.

If this issue is still important, you can simply comment with a
"bump" to keep it open.

Thank you for your contribution.

@github-actions github-actions bot added the stale label Oct 16, 2022
@github-actions
Copy link

This issue was automatically closed due to inactivity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants