Solution: sh: vite: command not found

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 ito reinstall the dependencies, and then execute npm run build, and execute again, npm run devit can run normally.

おすすめ

転載: blog.csdn.net/u014163312/article/details/132678210
おすすめ