Error: EACCES: permission denied, mkdir '/usr/local/bin/_appdata' at Object.mkdirSync (fs.js:757:3) at Object.<anonymous> (/usr/local/lib/node_modules/@frangoteam/fuxa/main.js:67:8) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
时间: 2023-10-04 11:07:25 浏览: 70
这个错误是权限不足导致的,你可能需要以管理员身份运行该命令或者更改该目录的权限。如果你使用的是 Linux 或 Mac 系统,可以尝试在命令前加上 sudo,如:sudo mkdir /usr/local/bin/_appdata。如果你使用的是 Windows 系统,则需要以管理员身份运行命令提示符或 PowerShell,并执行相应的命令来更改目录权限。
相关问题
Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/npminstall'
这个错误通常是由于缺少对目标文件夹的写入权限导致的。你可以尝试以下解决方法:
1. 使用管理员权限运行命令:在命令前面加上 `sudo` 或者使用管理员账户登录。
2. 更改文件夹的权限:使用 `chmod` 命令更改文件夹的权限。例如,运行 `sudo chmod -R 777 /usr/local/lib/node_modules/npminstall`。
3. 指定其他安装路径:使用 `npm config` 命令设置全局安装路径,例如:`npm config set prefix '~/.npm-global'`,然后尝试再次安装。
如果以上方法都没有解决问题,可能是其他因素引起的。你可以提供更多详细的错误日志或上下文信息,以便我能够更好地帮助你解决问题。
Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@vue'
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.