vuejs / devtools-next

The next iteration of Vue DevTools
https://devtools.vuejs.org/
MIT License
1.37k stars 94 forks source link

Can't install due to electron dependency #570

Open spevilgenius opened 4 weeks ago

spevilgenius commented 4 weeks ago

No matter what method I use to install, I receive an error when it tries to install the electron dependency. "RequestError: read ECONNRESET"

I was successful in loading the vite plugin but I don't think I can use that in my current situation as I have to test in production, so I am trying to install the global stand-alone version and both return the same error

alexzhang1030 commented 3 weeks ago

Hi, you can use an electron mirror like the docs says.

E.g. ELECTRON_MIRROR="https://your-mirror.com/ npm install @vue/devtools -g

spevilgenius commented 3 weeks ago

Unfortunately this does not work for me. I also tried setting the registry to http version and proxy as well to no avail. It is only electron that fails so far. All other npm installs work fine.

alexzhang1030 commented 3 weeks ago

If you are using pnpm, you can try pnpm config set ELECTRON_MIRROR https://your-custom-mirror.com/

webfansplz commented 3 weeks ago

Hi, if your goal is to be able to use devtools in production, you can try using the browser extension, It's easier to use.

Usage: https://devtools-next.vuejs.org/guide/browser-extension

spevilgenius commented 3 weeks ago

@webfansplz This is what I really wanted to do but we are not allowed to add extensions where I work. Looks like I will have to ask for a change request![at work]