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/init.js')
-rw-r--r--lib/init.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/init.js b/lib/init.js
index 6e4213c28..60ea52e16 100644
--- a/lib/init.js
+++ b/lib/init.js
@@ -41,8 +41,9 @@ const init = async args => {
}
}
npm.config.set('package', [])
+ const newArgs = [packageName, ...args.slice(1)]
return new Promise((res, rej) => {
- npm.commands.exec([packageName, ...args.slice(1)], er => er ? rej(er) : res())
+ npm.commands.exec(newArgs, er => er ? rej(er) : res())
})
}