question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module '../dist'

See original GitHub issue

After install bubblewrap npm i -g @bubblewrap/cli

When run command bubblewrap doctor

I get an error

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

Error: Cannot find module '../dist'
Require stack:
- /usr/local/lib/node_modules/@bubblewrap/cli/bin/bubblewrap.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)
    at Function.Module._load (internal/modules/cjs/loader.js:687:27)
    at Module.require (internal/modules/cjs/loader.js:903:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/@bubblewrap/cli/bin/bubblewrap.js:21:1)
    at Module._compile (internal/modules/cjs/loader.js:1015:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
    at Module.load (internal/modules/cjs/loader.js:879:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/usr/local/lib/node_modules/@bubblewrap/cli/bin/bubblewrap.js' ]
}

Node version: v12.19.0
npm version: 6.14.11

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
andrebancommented, Mar 4, 2021

Thanks - it seems I broke it when publishing earlier today - npm install @bubblewrap/cli@1.10.0 should enabling installing the previous working version. Nevertheless, I just published 1.11.1, which should fix the issue npm update -g @bubblewrap/cli to get the version.

0reactions
andrebancommented, Mar 4, 2021

Closing this, as #481 confirms the fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found