/bin/sh: vite: command not found
时间: 2023-11-09 14:18:15 浏览: 531
It seems that you are encountering an issue with the "vite" command not being found. This error typically occurs when the command-line tool "vite" is not installed or not available in the system's PATH.
To resolve this issue, you can try the following steps:
1. Make sure you have installed Vite globally by running:
```shell
npm install -g create-vite
```
This will install Vite as a global package and make it accessible from anywhere in the terminal.
2. If you have just installed Vite, try restarting your terminal or opening a new terminal window. This will ensure that the changes made to the PATH variable are recognized.
3. Verify that Vite is installed correctly by running:
```shell
vite --version
```
This should display the version number of Vite if it is installed correctly.
4. If none of the above steps work, it's possible that there was an issue during installation. In such cases, I would recommend uninstalling Vite and reinstalling it using a package manager like npm or yarn.
Please let me know if you need further assistance or if you have any other questions!
阅读全文