diff options
Diffstat (limited to 'deps/npm/lib/view.js')
-rw-r--r-- | deps/npm/lib/view.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/deps/npm/lib/view.js b/deps/npm/lib/view.js index 91b32e2fd38..9cc1aed9144 100644 --- a/deps/npm/lib/view.js +++ b/deps/npm/lib/view.js @@ -202,7 +202,10 @@ class View extends BaseCommand { const spec = npa(pkg) // get the data about this package - let version = spec.rawSpec || this.npm.config.get('tag') + let version = this.npm.config.get('tag') + // rawSpec is the git url if this is from git + if (spec.type !== 'git' && spec.rawSpec) + version = spec.rawSpec const pckmnt = await packument(spec, opts) |