npm i express npm ERR! syscall open

报错信息

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安装路径,查看这三个文件夹的权限,设置当前用户权限为完全访问即可
在这里插入图片描述
在这里插入图片描述

  • 11
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
引用\[1\]、\[2\]和\[3\]中的内容显示了一些关于npm的错误信息。这些错误信息中都包含了"npm ERR! code ENOENT npm ERR! syscall open"的内容。这个错误通常表示npm无法找到指定的文件或目录。具体来说,"ENOENT"表示没有找到文件或目录,"open"表示尝试打开文件或目录时出错。这可能是由于文件或目录不存在、路径错误或权限问题等原因导致的。要解决这个问题,你可以检查指定的文件或目录是否存在,确保路径正确,并确保你有足够的权限来访问它们。如果问题仍然存在,你可以查看相应的日志文件以获取更多详细信息。 #### 引用[.reference_title] - *1* *3* [解决vue报错问题:npm ERR! code ENOENT npm ERR! syscall open](https://blog.csdn.net/z459148345/article/details/118521484)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [npm ERR! code ENOENT npm ERR! syscall open 错误解决 前端vue启动报错](https://blog.csdn.net/weixin_64854388/article/details/129159358)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值