liuweiGL / vite-plugin-mkcert

Provide certificates for vite's https dev service.
https://www.npmjs.com/package/vite-plugin-mkcert
MIT License
541 stars 37 forks source link

Illegal operation on directory #63

Closed SmollClover closed 1 year ago

SmollClover commented 1 year ago

Describe the bug

When trying to start vite, with the plugin active, it errors out.

Reproduction

Create new Vite project, add plugin to project and empty/remove $HOME/.vite-plugin-mkcert folder, try starting vite.

System Info

Output of npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers:

  System:
    OS: Linux 6.1 Nobara Linux 37 (Thirty Seven)
    CPU: (8) x64 Intel(R) Core(TM) i7-9700 CPU @ 3.00GHz
    Memory: 18.84 GB / 31.26 GB
    Container: Yes
    Shell: 3.6.0 - /usr/bin/fish
  Binaries:
    Node: 18.1.0 - ~/.local/share/nvm/v18.1.0/bin/node
    Yarn: 1.22.15 - ~/.local/share/nvm/v18.1.0/bin/yarn
    npm: 8.8.0 - ~/.local/share/nvm/v18.1.0/bin/npm
  Browsers:
    Brave Browser: 110.1.48.171
    Firefox: 110.0
  npmPackages:
    @vitejs/plugin-vue: ^4.0.0 => 4.0.0 
    vite: ^4.1.0 => 4.1.4 

Used package manager: yarn

Logs

$ yarn dev 
yarn run v1.22.15
$ vite
(node:36536) ExperimentalWarning: The Fetch API is an experimental feature. This feature could change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
error when starting dev server:
Error: EISDIR: illegal operation on a directory, open '/home/USER/.vite-plugin-mkcert/mkcert'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Obapelumi commented 1 year ago

Running into the same issue as well

liuweiGL commented 1 year ago

:tada: This issue has been resolved in version 1.13.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket: