agentOS API Reference - v0.2.0-rc.3
    Preparing search index...

    Function nodeModulesMount

    • Mount a host node_modules directory into the VM at /root/node_modules.

      Parameters

      • hostNodeModulesDir: string

        Absolute host path to a node_modules directory.

      • Optionalopts: { readOnly?: boolean }
        • OptionalreadOnly?: boolean

          Defaults to true; the mount is read-only.

      Returns NodeModulesMountConfig