Unable to build lzma-native in Multipass LTS

#136 · open · 0 comments

View on GitHub ↗

decolon

I am trying to build an Electron app in an Ubuntu 22.04 Multipass VM. I am using the following commands to set up the VM and build a sample app **multipass launch lts --name almatech --cpus 4 --disk 10G --mem 4G multipass exec almatech -- sudo apt update multipass exec almatech -- sudo snap install node --classic multipass exec almatech -- npm init electron-app@latest /my-app** I am running ![Screenshot 2022-11-03 at 12 28 10 PM](https://user-images.githubusercontent.com/1477356/199816210-c29c141c-cd0a-41a2-aaf7-28c554db4c09.png) on a M2 Mac Air When the electron command executes I get this error **npm ERR! code 1 npm ERR! path /home/ubuntu/.npm/_npx/35c48adf706267bc/node_modules/lzma-native npm ERR! command failed npm ERR! command sh -c -- node-gyp-build npm ERR! A complete log of this run can be found in: npm ERR! /home/ubuntu/.npm/_logs/2022-11-03T19_29_08_357Z-debug-0.log** My node version is ![Screenshot 2022-11-03 at 12 30 07 PM](https://user-images.githubusercontent.com/1477356/199816594-576492e3-0254-47db-a307-e510ac3ca4a5.png) NPM version is ![Screenshot 2022-11-03 at 12 30 15 PM](https://user-images.githubusercontent.com/1477356/199816635-c85a974c-b0eb-4aac-9f57-705478527ba1.png) When I try just installing lzma-native, I get a very similar error, so I assume I can not build electron due to an issue with lzma-native ![Screenshot 2022-11-03 at 12 31 06 PM](https://user-images.githubusercontent.com/1477356/199816878-3706453a-dc36-4228-b513-9799e59c9f2f.png) Let me know what you think, and if there is any other info you need from me.

Comments