mirror of https://github.com/nodejs/node.git
15 lines
295 B
JavaScript
15 lines
295 B
JavaScript
const { output } = require('proc-log')
|
|
const BaseCommand = require('../base-cmd.js')
|
|
|
|
class Root extends BaseCommand {
|
|
static description = 'Display npm root'
|
|
static name = 'root'
|
|
static params = ['global']
|
|
|
|
async exec () {
|
|
output.standard(this.npm.dir)
|
|
}
|
|
}
|
|
|
|
module.exports = Root
|