Vue-devtools: Issue installing vue-remote-devtools global addon

Created on 6 Feb 2018  ·  2Comments  ·  Source: vuejs/vue-devtools

Version

4.1.3

Browser and OS info

macOS High Sierra
Vue CLI 3
5.6.0 of NPM

Steps to reproduce

Run sudo npm i -g @vue/devtools

What is expected?

Install of @vue/devtools

What is actually happening?

```/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
```

Here's the full NPM log

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.

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=true allows successful installation. Since this is not related to the vue-devtools I will close this issue.

All 2 comments

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.

Was this page helpful?
0 / 5 - 0 ratings