npm `wanted` vs `latest`

后端 未结 3 1894
有刺的猬
有刺的猬 2020-12-04 23:08

I use npm to install some command line tools. Having the itch to always be up to date, I found the command npm -g outdated.

What is the dif

3条回答
  •  萌比男神i
    2020-12-04 23:48

    Considering your example, cordova@5.3.3 is marked as “wanted”, but “latest” is cordova@5.3.1 because npm uses dist-tags to manage its latest and next release channels.

    npm update will install the newest version, but npm install cordova (with no semver range) will install whatever’s tagged as latest.

    link to documentation

提交回复
热议问题