You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure Functions运行报错:指定模块存在却提示未找到

Debugger listening on [::]:5858
module.js:597
  return process.dlopen(module, path._makeLong(filename));
                ^

Error: The specified module could not be found.
\\?\C:\Users\ash\AppData\Local\AzureFunctionsTools\Releases\1.13.2\cli_x64\edge\x86\edge_nativeclr.node\
    at Error (native)
    at Object.Module._extensions..node (module.js:597:18)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\ashleychen.REDMOND\AppData\Local\AzureFunctionsTools\Releases\1.13.2\cli_x64\edge\edge.js:54:8)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)

运行Azure Functions服务时出现「The specified module could not be found」错误,但报错路径下的edge_nativeclr.node文件实际存在,以下是具体解决方法:

解决步骤

1. 修复架构不匹配问题

报错路径里的x86文件夹与你使用的64位CLI(cli_x64)冲突,64位环境无法加载32位原生模块:

  • 找到C:\Users\ashleychen.REDMOND\AppData\Local\AzureFunctionsTools\Releases\1.13.2\cli_x64\edge\edge.js文件,打开后修改第54行的路径,将x86替换为x64,保存后重启服务。

2. 安装缺失的VC++运行时库

.node原生模块依赖Visual C++运行时库,即使文件存在,缺少依赖也会触发报错:

  • 安装对应版本的64位Visual C++ Redistributable(推荐VS 2015-2022版本),安装完成后重启电脑再运行服务。

3. 检查文件权限

系统对目标文件无读取权限也会导致识别异常:

  • 右键edge_nativeclr.node文件,选择「属性」-「安全」,添加当前用户的「读取和执行」权限,应用后重启服务。

4. 清理缓存并修复CLI

CLI缓存或文件损坏可能引发路径识别错误:

  • 删除C:\Users\ashleychen.REDMOND\AppData\Local\AzureFunctionsTools\Releases\1.13.2\cli_x64\edge目录下的缓存文件;
  • 通过npm重新安装azure-functions-core-tools,或者使用官方安装包修复CLI。

内容的提问来源于stack exchange,提问作者ashok1024

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.13 06:25:28