Hey all. Failed to run 'npm --cache-min=Infinity install --global' for 'electron-app': Exited with code 1

when trying to build a snap I get this error:

pm --cache-min=Infinity install
npm WARN Invalid name: “Ubuntu Mate Launchpad”
npm WARN src No description
npm WARN src No repository field.
npm WARN src No README data
npm WARN src No license field.
npm --cache-min=Infinity install --global
npm ERR! Linux 4.18.6-041806-generic
npm ERR! argv “/root/build_ubmala/parts/electron-app/install/bin/node” “/root/build_ubmala/parts/electron-app/install/bin/npm” “–cache-min=Infinity” “install” “–global”
npm ERR! node v6.14.2
npm ERR! npm v3.10.10

npm ERR! Invalid name: “Ubuntu Mate Launchpad”
npm ERR!
npm ERR! If you need help, you may report this error at:

npm ERR! Please include the following file with any support request:
npm ERR! /root/build_ubmala/parts/electron-app/src/npm-debug.log
Failed to run ‘npm --cache-min=Infinity install --global’ for ‘electron-app’: Exited with code 1.
Verify that the part is using the correct parameters and try again.
Error: not found
Stopping local:snapcraft-barely-pumped-falcon
An error occurred when trying to copy files using ‘lxd’: returned exit code 1.

And when trying to use snapcraft.io builder I get the same error
This is the GitHub project page: https://github.com/apolitech/Ubuntu-Mate-launchpad-app

Thanks for all your help.

The name ("Ubuntu Mate Launchpad") in your package.json doesn’t meet npm’s requirements. Consider something like “ubuntu-mate-launchpad” instead. You should be able to reproduce the error with npm directly, outside snapcraft.

Thanks a lot. that fix it!
Have a great day!