You are viewing a single comment's thread from:

RE: Electron installation failure on Linux Mint 18

in #utopian-io7 years ago

Your contribution cannot be approved because it does not follow the Utopian Rules.

Hello,
I read through your Github Issue which is linked to the contribution.

I would like to highlight as there is a comment on the issue you made -

The -D flag is trying to save electron as a dev dependency for a node project. It looks like you are not in a node project.

If are just trying to install electron, then you could run: npm i -g electron which would install electron globally and would make available to you (providing your path is setup correctly - check the npm docs).

If however you are trying to use electron in a new project then first run npm init in your new blank project folder and then you can run npm i -D electron in that project folder.

After reading through this comment I checked your log back out and seen for the first time you were installing electron in your home directory which got clear from the first line

npm ERR! path /home/nolan/node_modules

which shows you were trying to install Electron as a dev dependency in your home folder it first gave permission denied error which is by default a error if you execute a command of accessing home without root permissions then after that you tried it out with sudo but as it cannot be installed as a dev dependency in home folder it gives you another error.

I would recommend you to either try to install in globally by -g flag or try to install it as a dev dependency in a project folder.

Hence it is not a bug I will hide it from Utopian.

For further help and assistance regarding electron you may go to thier community or thier slack channel.

Thanks!

You can contact us on Discord.

[utopian-moderator]

Sort:  

Installing globally failed too. Thought i commented that in the replies. Ive managed to get electron running on my other non debian based distro with no problems.

Ive also managed to use electron forge no problem on this OS used in the bug report. But i have not been able to get it to install per their directions. Even when trying to install globally so something must be going on?

It cannot be approved as a bug sadly

But for help I will recommend you to try to get assistance from thier Slack channel which is the best way to get it working as they have already mentioned it cannot be considered as a bug.

There are several errors due to different conditions while installing electron I will advise you maybe google out about it or try out once in thier slack.

Just for your assurance I tried out installing electron in my Debian based Ubuntu GNOME 17.10

and was successful in installing it

I would recommend you to try this command once

sudo npm install -g electron --unsafe-perm=true --allow-root

I have attached a screenshot below -

jaadu.png

I hope this would be helpful to you

Node version - 9.11.1(Latest)