I am publishing artifact to npm repository with a custom tag 'dev-latest'. After executing npm install
in a project where I have this dependency defined, the latest version is not updated.
After new artifact is published I see that dev-latest points to the latest version:
npm view @kosmos/equote-lib dist-tags
{ 'dev-latest': '1.0.0-dev20190125.1',
latest: '1.0.0-rel20190122.0',
'rel-latest': '1.0.0-rel20190123.0' }
Locally i have installed previous version. In my package.json my dependency is defined:
"@kosmos/equote-lib": "dev-latest",
after executing npm install
to update whole project my package is not updated to the latest version.
When I do npm install @kosmos/equote-lib@dev-latest
it will update it but also change my package.json entry to the specific package version.
Other solution is to remove node_modules and the I will get latest version as well.
I would expect that using tag will remove the need of specifying the version in package.json Is there a way to implement the desired behavior ?