DEV Community

Posen992
Posen992

Posted on

Errors occurred while using Vite

Here are some errors occurred while using Vite.

1. Error when create a new Vite project with the React template:

When running the command npm install, sometimes the terminal displays an error like the one shown in the picture:

create new project.png

Even though the log suggests using this command with --force, the error persists due to a permission issue. The correct way to resolve this error is to use the command with sudo.

solve the error.png

Now, the error has been resolved, and the dependency is installed.

Top comments (0)