Reputation: 1628
I am trying to run an electron application on macOS Catalina 10.15.7. I have installed nvm and node 20.9.0, and have installed electron, but when I try to start my electron app with the command electron .
I get an error saying dyld: Library not loaded image not found
martin@martins-MacBook-Air RenderTune % brew update && brew upgrade
==> Updating Homebrew...
Already up-to-date.
martin@martins-MacBook-Air RenderTune % node -v
v20.9.0
martin@martins-MacBook-Air RenderTune % npm i -g electron
npm WARN deprecated [email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
changed 70 packages in 25s
17 packages are looking for funding
run `npm fund` for details
martin@martins-MacBook-Air RenderTune % electron .
dyld: Library not loaded: /System/Library/Frameworks/UniformTypeIdentifiers.framework/Versions/A/UniformTypeIdentifiers
Referenced from: /Users/martin/.nvm/versions/node/v20.9.0/lib/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework
Reason: image not found
/Users/martin/.nvm/versions/node/v20.9.0/lib/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron exited with signal SIGABRT
martin@martins-MacBook-Air RenderTune %
I tried various solutions from other stack overflow questions such as installing Xcode and running brew update/upgrade commands, but I am still getting this error.
Upvotes: 0
Views: 8