faressoft / terminalizer

🦄 Record your terminal and generate animated gif images or share a web player
https://terminalizer.com
MIT License
15.39k stars 500 forks source link

electron error when installed globally with bun #247

Open 7flash opened 3 weeks ago

7flash commented 3 weeks ago

to reproduce,

bun install -g terminalizer
terminalizer record demo
/Users/gur/.bun/install/global/node_modules/electron/index.js:17
    throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again');
    ^

Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
    at getElectronPath (/Users/gur/.bun/install/global/node_modules/electron/index.js:17:11)
    at Object.<anonymous> (/Users/gur/.bun/install/global/node_modules/electron/index.js:21:18)
    at Module._compile (node:internal/modules/cjs/loader:1572:14)
    at Object..js (node:internal/modules/cjs/loader:1709:10)
    at Module.load (node:internal/modules/cjs/loader:1315:32)
    at Function._load (node:internal/modules/cjs/loader:1125:12)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:216:24)
    at Module.require (node:internal/modules/cjs/loader:1337:12)
    at require (node:internal/modules/helpers:139:16)