Article directory
Problem Description
When pulling the project for the first time, an error is reported when running npm run dev: sh: vite: command not found
Cause Analysis
I checked package.json and found that there is vite.
Caused by no installation dependencies;
solution
Execute npm i
to reinstall the dependencies, and then execute npm run build
, and execute again, npm run dev
it can run normally.