MCPcopy Create free account
hub / github.com/nodejs/node / main

Function main

deps/npm/bin/npm-prefix.js:19–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17})
18
19async function main () {
20 try {
21 await config.load()
22 // eslint-disable-next-line no-console
23 console.log(config.globalPrefix)
24 } catch (err) {
25 // eslint-disable-next-line no-console
26 console.error(err)
27 process.exit(1)
28 }
29}
30main()

Callers 1

npm-prefix.jsFile · 0.70

Calls 4

loadMethod · 0.45
logMethod · 0.45
errorMethod · 0.45
exitMethod · 0.45

Tested by

no test coverage detected