MCPcopy
hub / github.com/ampproject/amphtml / logNpmVersion

Function logNpmVersion

build-system/common/check-package-manager.js:191–199  ·  view source on GitHub ↗

* If npm is being run, log its version and proceed with the install.

()

Source from the content-addressed store, hash-verified

189 * If npm is being run, log its version and proceed with the install.
190 */
191function logNpmVersion() {
192 const npmVersion = getStdout('npm --version').trim();
193 console.log(
194 green('Detected'),
195 cyan('npm'),
196 green('version'),
197 cyan(npmVersion) + green('. Installing packages...')
198 );
199}
200
201/**
202 * Checks if the local version of python is 2.7 or 3

Callers 1

mainFunction · 0.85

Calls 4

getStdoutFunction · 0.85
greenFunction · 0.85
cyanFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected