1const BaseCommand = require('../base-command.js') 2class Root extends BaseCommand { 3 static description = 'Display npm root' 4 static name = 'root' 5 static params = ['global'] 6 7 async exec () { 8 this.npm.output(this.npm.dir) 9 } 10} 11module.exports = Root 12