I have been trying to install electron using npm on high sierra and I am unable to do so, sudo or changing folder permission, nothing seems to work.
I did see this error on several posts but most of them point to using the correct node version. Some links I checked: 1 2
I was on version 9.2.1 but switched to version 8.2.1 based on what I saw in electron.
Below is the screenshot of the error:
Is this because for some reason I am forbidden from adding certain files to my root? I have tis doubt because of late I am having a lot of hassle installing any software. Is there a way to get rid of this problem for good?