pkg

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNodeNotInstalled = errors.New("nodejs not installed")
View Source
var ErrNodeVersionNotFound = errors.New("nodejs version not found")

Functions

This section is empty.

Types

type N

type N struct {
	// contains filtered or unexported fields
}

func NewNodeManager

func NewNodeManager(global bool, version string, rootDir string) (*N, error)

func (*N) CaptureOutput

func (n *N) CaptureOutput(args ...string) (stdout []byte, stderr []byte, err error)

Deprecated

func (*N) EnsureInstalled

func (n *N) EnsureInstalled() error

func (*N) Install

func (n *N) Install() error

func (*N) Npm

func (n *N) Npm() NpmRunner

func (*N) Run

func (n *N) Run(args ...string) (err error)

func (*N) SetBinaryArchX86

func (n *N) SetBinaryArchX86()

SetBinaryArchX86 is used for apple m-series/arm series machines v < 16 doesn't have arm binaries

func (*N) Version

func (n *N) Version() string

type NpmRunner

type NpmRunner interface {
	CaptureOutput(args ...string) ([]byte, []byte, error)
	Run(args ...string) error
}

type SemverManager

type SemverManager interface {
	Compare(v *semverv3.Version) int
}

Jump to

Keyboard shortcuts

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