devtools-next icon indicating copy to clipboard operation
devtools-next copied to clipboard

Standalone version of devtools not launching on bun

Open rp1231 opened this issue 1 year ago • 7 comments

I get this error:

Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
    at getElectronPath (C:\Users\lenovo\.bun\install\global\node_modules\electron\index.js:17:11)
    at Object.<anonymous> (C:\Users\lenovo\.bun\install\global\node_modules\electron\index.js:21:18)
    at Module._compile (node:internal/modules/cjs/loader:1460:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1544:10)
    at Module.load (node:internal/modules/cjs/loader:1275:32)
    at Module._load (node:internal/modules/cjs/loader:1091:12)
    at wrapModuleLoad (node:internal/modules/cjs/loader:212:19)
    at cjsLoader (node:internal/modules/esm/translators:318:5)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:258:7)
    at ModuleJob.run (node:internal/modules/esm/module_job:262:25)

I tried deleting hte entire node_modules directory and reinstalling, but it's not working.

rp1231 avatar Jun 28 '24 10:06 rp1231

Have you tried npm -g remove electron ?

Lootjs avatar Jun 28 '24 12:06 Lootjs

@Lootjs That didn't help

rp1231 avatar Jun 28 '24 14:06 rp1231

I had installed it using bun. But I deleted the bun version and installed the npm version and now it works. So maybe the problem was just with the bun version.

rp1231 avatar Jun 28 '24 15:06 rp1231

Great! Maybe you could make a PR and mention the solution in https://github.com/vuejs/devtools-next/blob/main/docs/help/troubleshooting.md. What do you think?

Lootjs avatar Jun 28 '24 17:06 Lootjs

It's not really a solution though, the problem still exists in the bun package for me.

rp1231 avatar Jun 28 '24 20:06 rp1231

Let's track if someone else reports this issue.

alexzhang1030 avatar Jul 01 '24 07:07 alexzhang1030

https://github.com/oven-sh/bun/issues/1588, looks like an upstream issue

alexzhang1030 avatar Jul 23 '24 03:07 alexzhang1030