Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utils/npm-usage.js')
-rw-r--r--lib/utils/npm-usage.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/utils/npm-usage.js b/lib/utils/npm-usage.js
index 220f8037f..b77bca7be 100644
--- a/lib/utils/npm-usage.js
+++ b/lib/utils/npm-usage.js
@@ -1,6 +1,5 @@
const didYouMean = require('./did-you-mean.js')
const { dirname } = require('path')
-const output = require('./output.js')
const { cmdList } = require('./cmd-list')
module.exports = (npm, valid = true) => {
@@ -8,7 +7,7 @@ module.exports = (npm, valid = true) => {
const usesBrowser = npm.config.get('viewer') === 'browser'
? ' (in a browser)' : ''
npm.log.level = 'silent'
- output(`
+ npm.output(`
Usage: npm <command>
npm install install all the dependencies in your project
@@ -34,7 +33,7 @@ npm@${npm.version} ${dirname(dirname(__dirname))}
`)
if (npm.argv.length >= 1)
- output(didYouMean(npm.argv[0], cmdList))
+ npm.output(didYouMean(npm.argv[0], cmdList))
if (!valid)
process.exitCode = 1