cerebroapp / cerebro

🔵 Cerebro is an open-source launcher to improve your productivity and efficiency
https://www.cerebroapp.com/
MIT License
8.33k stars 455 forks source link

Build error Can't resolve 'spawn-sync' #550

Closed ganjarpanji closed 2 years ago

ganjarpanji commented 2 years ago

Issue

I got failed build error, tried to update manually execa as mentioned from here https://github.com/sindresorhus/shell-env/issues/12

WARNING in ./node_modules/shell-env/node_modules/cross-spawn/index.js
Module not found: Error: Can't resolve 'spawn-sync' in '/Users/me/Project/cerebro/node_modules/shell-env/node_modules/cross-spawn'
 @ ./node_modules/shell-env/node_modules/cross-spawn/index.js 32:26-47
 @ ./node_modules/shell-env/node_modules/execa/index.js
 @ ./node_modules/shell-env/index.js
 @ ./node_modules/shell-path/index.js
 @ ./node_modules/fix-path/index.js
 @ ./app/background/background.js
 @ multi webpack-hot-middleware/client?path=http://localhost:3000/__webpack_hmr ./app/background/background
jaimegarjr commented 2 years ago

Also ran into this error - installing spawn-sync by using npm i spawn-sync got rid of the error when compiling.

Saltiola7 commented 2 years ago

I got this on Fedora 36: WARNING in ./node_modules/shell-env/node_modules/cross-spawn/index.js Module not found: Error: Can't resolve 'spawn-sync' in '/home/tommi/cerebro/node_modules/shell-env/node_modules/cross-spawn' @ ./node_modules/shell-env/node_modules/cross-spawn/index.js 32:26-47 @ ./node_modules/shell-env/node_modules/execa/index.js @ ./node_modules/shell-env/index.js @ ./node_modules/shell-path/index.js @ ./node_modules/fix-path/index.js @ ./app/background/background.js @ multi webpack-hot-middleware/client?path=http://localhost:3000/__webpack_hmr ./app/background/background