/Users/yuwei/Desktop/bbs/xaut-trip/node_modules/.bin/vite: Permission denied
时间: 2023-09-04 10:06:44 浏览: 165
This error message indicates that the user running the command does not have the necessary permissions to execute the "vite" command from the specified directory.
To resolve the issue, you can try the following steps:
1. Make sure you have installed "vite" globally using the command:
```
npm install -g vite
```
2. Check the permissions of the "vite" command using the command:
```
ls -l /Users/yuwei/Desktop/bbs/xaut-trip/node_modules/.bin/vite
```
If the permissions are not set to executable, you can change them using the command:
```
chmod +x /Users/yuwei/Desktop/bbs/xaut-trip/node_modules/.bin/vite
```
3. If you still encounter the same error, try running the command as a superuser using the command:
```
sudo /Users/yuwei/Desktop/bbs/xaut-trip/node_modules/.bin/vite
```
However, running commands with superuser privileges should be used sparingly and only when necessary.
阅读全文