npm - how to show the latest version of a package

前端 未结 6 1430
太阳男子
太阳男子 2020-12-04 05:46

How do I use npm to show the latest version of a module? I am expecting something like npm --latest express to print out v3.0.0.

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-04 05:55

    There is also another easy way to check the latest version without going to NPM if you are using VS Code.

    In package.json file check for the module you want to know the latest version. Remove the current version already present there and do CTRL + space or CMD + space(mac).The VS code will show the latest versions

提交回复
热议问题