I have been using bower which follows a similar syntax to NPM, so if i do
我一直在使用bower,它遵循与NPM类似的语法,所以如果我这样做
Bower list
It shows me a list of the installed packaged but also tells me if there is a higher version available.
它显示了已安装的已打包列表,但也告诉我是否有更高版本可用。
I tried the npm -g list and I see a number of packages which I know there are updates available but it doesn't say update available.
我尝试了npm -g列表,我看到了许多软件包,我知道有可用的更新,但它没有说更新可用。
I tried offering --depth=0 and still the same.
我尝试提供--depth = 0并且仍然相同。
I didn't want to just run update as this would install all updates and I have seen before breaking changes from 1 version to another.
我不想只是运行更新,因为这将安装所有更新,我已经看到在从1版本到另一个版本的更改之前。
I am probably not using npm correctly, is there a way to a get a list of what I have installed and what is available together so I can see it on one line.
我可能没有正确使用npm,有没有办法获得我已经安装的内容和可用的内容列表,所以我可以在一行上看到它。
1 个解决方案
#1
1
You are looking for npm outdated:
您正在寻找过时的npm:
this command will check the registry to see if any (or, specific) installed packages are currently outdated.
此命令将检查注册表以查看是否有任何(或特定)安装的软件包当前已过时。
npm outdated -g
npm过时的-g
Here is the output example:
这是输出示例:
npm@1.3.13 /Users/miktam/.nvm/v0.10.20/lib/node_modules/npm current=1.3.11
#1
1
You are looking for npm outdated:
您正在寻找过时的npm:
this command will check the registry to see if any (or, specific) installed packages are currently outdated.
此命令将检查注册表以查看是否有任何(或特定)安装的软件包当前已过时。
npm outdated -g
npm过时的-g
Here is the output example:
这是输出示例:
npm@1.3.13 /Users/miktam/.nvm/v0.10.20/lib/node_modules/npm current=1.3.11