4.1.3
macOS High Sierra
Vue CLI 3
5.6.0 of NPM
Run sudo npm i -g @vue/devtools
Install of @vue/devtools
```/usr/local/lib/node_modules/@vue/devtools/node_modules/electron/install.js:48
throw err
^
Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@vue/devtools/node_modules/electron/.electron'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: node install.js
npm ERR! Exit status 1
```
I have been able to install the cli-init global addon without an issue if that eliminates anything.
It also is able to install as long as I don't do a global install.
Please forgive if this is in the wrong format, this is my first bug report.
This appears to be a common issue with Electron and NPM permissions. More info here. In short, running with the --unsafe-perm=true allows successful installation. Since this is not related to the vue-devtools I will close this issue.
It would be useful to put the above command and links to the reasons in the README. I don't see how this won't be a common problem if you are using global install and the Node package installer.
Most helpful comment
This appears to be a common issue with Electron and NPM permissions. More info here. In short, running with the
--unsafe-perm=trueallows successful installation. Since this is not related to thevue-devtoolsI will close this issue.