devtools-next icon indicating copy to clipboard operation
devtools-next copied to clipboard

Can't install due to electron dependency

Open spevilgenius opened this issue 1 year ago • 5 comments

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

spevilgenius avatar Aug 18 '24 14:08 spevilgenius

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

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

alexzhang1030 avatar Aug 20 '24 01:08 alexzhang1030

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.

spevilgenius avatar Aug 20 '24 10:08 spevilgenius

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

alexzhang1030 avatar Aug 20 '24 10:08 alexzhang1030

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

webfansplz avatar Aug 20 '24 12:08 webfansplz

@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]

spevilgenius avatar Aug 20 '24 15:08 spevilgenius