Documentation ¶
Index ¶
- Constants
- Variables
- func InstallNPM(tag, binPath string) error
- func InstallNPMWithoutDefaults(tag, binPath, baseURLStr string, osRuntime osruntime.OSRuntime) error
- func InstallNode(tag, binPath string) error
- func InstallNodeWithoutDefaults(tag, binPath, baseURLStr string, osRuntime osruntime.OSRuntime) error
Constants ¶
View Source
const Darwin = "darwin"
Darwin is the right way to spell darwin
View Source
const Linux = "linux"
Linux is the right way to spell linux
View Source
const NPMType = "npm"
NPMType dependency type
View Source
const NodeType = "node"
NodeType dependency type
View Source
const Windows = "windows"
Windows is the right way to spell windows
Variables ¶
View Source
var ArchMap = map[string]string{
"386": "x86",
"amd64": "x64",
"arm": "armv7l",
}
ArchMap defines the GOARCH to NodeArch mapping
Functions ¶
func InstallNPM ¶
InstallNPM installs the specified version of Node.JS
func InstallNPMWithoutDefaults ¶
func InstallNPMWithoutDefaults(tag, binPath, baseURLStr string, osRuntime osruntime.OSRuntime) error
InstallNPMWithoutDefaults installs the specified version of NPM if you're running Windows. Otherwise, it does nothing.
func InstallNode ¶
InstallNode installs the specified version of Node.JS
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.