npm

package
v1.3.18-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NpmClient

type NpmClient struct{}

NpmClient implements pkgmgr.Client for npm.

func NewClient

func NewClient() *NpmClient

func (*NpmClient) DetectFirewallError

func (c *NpmClient) DetectFirewallError(stderr string) bool

func (*NpmClient) DetectRegistry

func (c *NpmClient) DetectRegistry(explicitRegistry string) (*pkgmgr.RegistryInfo, error)

DetectRegistry detects the HAR registry from saved config or .npmrc files.

func (*NpmClient) FallbackOrgProject

func (c *NpmClient) FallbackOrgProject() (string, string)

func (*NpmClient) Name

func (c *NpmClient) Name() string

func (*NpmClient) PackageType

func (c *NpmClient) PackageType() string

func (*NpmClient) ResolveDependencies

func (c *NpmClient) ResolveDependencies(progress p.Reporter) (*pkgmgr.DependencyResult, error)

ResolveDependencies resolves all npm dependencies from lock files. If no lock file exists, generates one with npm install --package-lock-only.

func (*NpmClient) RunCommand

func (c *NpmClient) RunCommand(command string, args []string) (*pkgmgr.InstallResult, error)

RunCommand executes a native npm command with live output streaming.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL