vite error when starting dev server: Error: ENOTEMPTY: directory not empty

created at 06-14-2022 views: 8


When using vite for learning, you need to use router, install it through npm install vue-router@4, configure all files and start the error, as follows


The solution is to delete the .vite folder in the node_modules file under the project.

created at:06-14-2022
edited at: 06-14-2022: