Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@vue'
时间: 2023-10-13 19:05:36 浏览: 144
已解决:gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied……
This error message indicates that you do not have the necessary permissions to create a new directory in the specified path. In this case, the path is '/usr/local/lib/node_modules/@vue'.
To resolve this issue, you can try running the command with elevated privileges. If you are on a Unix-based system, you can use the 'sudo' command to run the command as a superuser. For example:
sudo mkdir /usr/local/lib/node_modules/@vue
If you are on a Windows system, you can try running the command as an administrator by right-clicking on the command prompt and selecting "Run as administrator".
Alternatively, you can change the ownership and permissions of the target directory to allow your user account to create new directories. However, this can be a more complicated process and may not be appropriate in all situations.
阅读全文