文章目录
报错信息
PS D:\xxx> npm i express npm ERR! syscall open npm ERR! path E:xxx npm ERR! Error: EPERM: operation not permitted, open 'E:\xxx npm ERR! [Error: EPERM: operation not permitted, open 'E:\xxx npm ERR! errno: -4048, npm ERR! code: ‘EPERM’, npm ERR! syscall: ‘open’, npm ERR! path: xxx npm ERR! requiredBy: ‘.’ 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 an npm ERR! or that you lack permissions to access it. npm ERR! If you believe this might be a permissions issue, please double-check npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! You can rerun the command with --loglevel=verbose to see the logs in
报错原因及解决方案
安装node文件权限原因(根据报错信息中的路径,去找文件夹的权限),打开node安装路径,查看这三个文件夹的权限,设置当前用户权限为完全访问即可