Failing under Widnows
See original GitHub issueDescribe the bug
Under Windows, installing the certs fail. In order to access C:\Program Files\*
admin privileges are required. On the other hand, why would it install
Reproduction
- Use the plugin under Windows without admin
System Info
Output of npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers
:
System:
OS: Windows 10 10.0.19043
CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Memory: 3.81 GB / 15.85 GB
Binaries:
Node: 16.3.0 - C:\Program Files\nodejs\node.EXE
npm: 7.21.0 - C:\Program Files\nodejs\npm.CMD
Browsers:
Chrome: 92.0.4515.159
Edge: Spartan (44.19041.1023.0), Chromium (92.0.902.84)
Internet Explorer: 11.0.19041.1
Used package manager: npm
Logs
First time error (without vite --debug
flag but still)
error when starting dev server:
Created a new local CA 💥
The local CA is now installed in the system trust store! ⚡️
Note: Firefox support is not available on your platform. ℹ️
ERROR: failed to execute "keytool -importcert": exit status 1
Certificate was added to keystore
keytool error: java.io.FileNotFoundException: C:\Program Files\Java\jdk1.8.0_211\jre\lib\security\cacerts (Odmowa dost�pu)
at ChildProcess.exithandler (node:child_process:326:12)
at ChildProcess.emit (node:events:394:28)
at ChildProcess.emit (node:domain:470:12)
at maybeClose (node:internal/child_process:1067:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
Second try error:
vite:config bundled config file loaded in 238ms +0ms
vite:plugin:mkcert The hosts changed from [undefined] to [localhost,192.168.55.6,127.0.0.1], start regenerate certificate +0ms
error when starting dev server:
Error: Command failed: C:\Users\PsychoX\.vite-plugin-mkcert\mkcert.exe -install -key-file C:\Users\PsychoX\.vite-plugin-mkcert\certs\dev.key -cert-file C:\Users\PsychoX\.vite-plugin-mkcert\certs\dev.pem localhost 192.168.55.6 127.0.0.1
The local CA is already installed in the system trust store! 👍
Note: Firefox support is not available on your platform. ℹ️
ERROR: failed to execute "keytool -importcert": exit status 1
Certificate was added to keystore
keytool error: java.io.FileNotFoundException: C:\Program Files\Java\jdk1.8.0_211\jre\lib\security\cacerts (Odmowa dost�pu)
at ChildProcess.exithandler (node:child_process:326:12)
at ChildProcess.emit (node:events:394:28)
at ChildProcess.emit (node:domain:470:12)
at maybeClose (node:internal/child_process:1067:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Get help with Windows upgrade and installation errors
See some of the most common upgrade and installation errors for Windows 10 and Windows 11, and what you can do to try...
Read more >Windows 11 Installation Has Failed? Your Fixes Are Here
How Do I Fix Windows 11 Installation Has Failed Error? Fix It Now · Remove connected external hard drives, USB drives, or SD...
Read more >4 Solutions to Fix Windows 10/11 Installation Has Failed
4 Solutions to Fix the "Windows 10/11 installation has failed" Error · Solution 1: Run a Clean Boot Installation · Solution 2: Create...
Read more >[SOLVED] Windows 10 Installation Has Failed - Driver Easy
The first quick fix you can try is to unplug any unnecessary peripheral devices from your PC and try to install Windows 10...
Read more >Windows 10 Installation Has Failed [Easily FIXED]
Windows 10 installation has failed can occur due to installed components, so be sure to remove them before trying to upgrade.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@liuweiGL Can hiding
JAVA_HOME
be added if its running on Windows?utils.ts
, around like 62:If you can add that it would be nice. (I can’t use PNPM anyway so I can’t do it myself)
You are right, we don’t need support install into java cacerts file.
I will take your advice, thank you.