PS C:\Users\40391\Desktop\ITEMS\ruoyi-vue-pro\yudao-ui-admin> npm install -g pnpm npm ERR! code EPERM npm ERR! syscall mkdir npm ERR! path B:\nodejs\node_modules\pnpm npm ERR! errno -4048 npm ERR! Error: EPERM: operation not permitted, mkdir 'B:\nodejs\node_modules\pnpm' npm ERR! [Error: EPERM: operation not permitted, mkdir 'B:\nodejs\node_modules\pnpm'] { npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'mkdir', npm ERR! path: 'B:\\nodejs\\node_modules\\pnpm' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It's possible that the file was already in use (by a text editor or antivirus), npm ERR! or that you lack permissions to access it. npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! A complete log of this run can be found in: C:\Users\40391\AppData\Local\npm-cache\_logs\2023-06-01T11_46_41_835Z-debug-0.log
时间: 2023-07-09 14:25:56 浏览: 144
基于ruoyi-vue-pro的分组管理系统和yudao-ui-admin-vue3.zip一起
看起来你在执行 `npm install -g pnpm` 命令时遇到了权限问题,可能是你没有足够的权限去创建文件夹。你可以尝试以管理员身份重新运行该命令,或者检查文件夹以及其父文件夹的权限。此外,也可以尝试关闭可能正在使用该文件夹的其他程序,例如文本编辑器或杀毒软件。如果问题仍然存在,可以查看日志文件以获取更多信息。
阅读全文