Skip to content

[BUG] install a git dependency by tag does not install correct version. #3427

@Raynos

Description

@Raynos

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I run npm install optoolco/tonic#v13.3.0 but instead v13.3.2 is installed.

The wrong version is installed.

Expected Behavior

Expected the right version to be installed ( v13.3.0 )

Steps To Reproduce

raynos at raynos-Precision-5530  
~/optoolco/async-level on master
$ npm -v
6.14.13
raynos at raynos-Precision-5530  
~/optoolco/async-level on master
$ npm i npm@7 -g
npm http fetch GET 304 https://registry.npmjs.org/npm 147ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/npm/-/npm-7.17.0.tgz 237ms
/home/raynos/projects/nvm/versions/node/v14.15.4/bin/npm -> /home/raynos/projects/nvm/versions/node/v14.15.4/lib/node_modules/npm/bin/npm-cli.js
/home/raynos/projects/nvm/versions/node/v14.15.4/bin/npx -> /home/raynos/projects/nvm/versions/node/v14.15.4/lib/node_modules/npm/bin/npx-cli.js
+ npm@7.17.0
added 62 packages from 25 contributors, removed 242 packages and updated 193 packages in 4.238s
raynos at raynos-Precision-5530  
~/optoolco/async-level on master
$ npm i optoolco/tonic#v13.3.2 -S
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 380ms
npm http fetch GET 200 https://codeload.github.com/optoolco/tonic/tar.gz/191fd38b3c3eaf6b419ce8f5f38fa4a26940cdaf 366ms (cache miss)
pm[         .........] / reify:@optoolco/tonic: http fetch GET 200 https://codeload.github.com/optool[         .........] / reify:@optoolco/tonic: http fetch GET 200 https://codeload.github.com/optoolc

added 1 package, and audited 13 packages in 16s

found 0 vulnerabilities
raynos at raynos-Precision-5530  
~/optoolco/async-level on master*
$ npm -v
7.17.0
raynos at raynos-Precision-5530  
~/optoolco/async-level on master*
$ cat node_modules/@optoolco/tonic/package.json | jq .version
"13.3.2"
raynos at raynos-Precision-5530  
~/optoolco/async-level on master*
$ npm i optoolco/tonic#v13.3.0 -S
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 354ms

up to date, audited 13 packages in 2s

found 0 vulnerabilities
raynos at raynos-Precision-5530  
~/optoolco/async-level on master*
$ cat node_modules/@optoolco/tonic/package.json | jq .version
"13.3.2"

Environment

  • OS: Ubuntu 18
  • Node: 14.15.4
  • npm: 7.17.0

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingPriority 1high priority issueRelease 7.xwork is associated with a specific npm 7 release

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions