For AI agents: the complete documentation index is available at /en/llms.txt, the full documentation bundle is available at /en/llms-full.txt, and this page is available as Markdown at /en/reference/sdk/node/config/functions/modulePath.md.
  • English
  • Function: modulePath()

    function modulePath(dir: string, name: ModuleFileName): string;

    Defined in: node/config/index.ts:391

    模块系统文件路径(catalog / module-lock)。

    Parameters

    ParameterType
    dirstring
    nameModuleFileName

    Returns

    string