skip to Main Content

My package.json the vite version is "vite": "^5.0.10",
node version is node 20.0.0 npm version npm 9.6.4

is there any way to solve this issue?

this type of error happend here.

2

Answers


  1. Chosen as BEST ANSWER

    i deleted node_modules forlder and package-lock.json file and re install the project. I just genarate this 2 files and give the authorization for mkcert. and it works for me. C:UsersMasudur Rahman.vite-plugin-mkcertdev.pem C:UsersMasudur Rahman.vite-plugin-mkcertcert.pem

    enter image description here


  2. The problem is the space character in the path C:UsersMasudur Rahman.vite-plugin-mkcertmkcert.exe as one can see in the error message.
    There are several options to solve that, for example:

    • Place the file mkcert.exe at a path that contains no spaces.
    • Change the calling source code, so it can handle spaces in paths.
    • Escape the space character in the path (if possible), so the call succeeds

    Maybe this post is also helpful.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search