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:
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
.
Now, the error has been resolved, and the dependency is installed.
Top comments (0)