How to find search/find npm packages

2019-01-20 22:33发布

14条回答
一纸荒年 Trace。
2楼-- · 2019-01-20 23:30

It's sad but npm search won't work for me on node version 6+.

A quick workaround is by doing a curl from the command line:

curl --fail -O https://www.npmjs.com/package/q-promise 2>&1 | grep '404'

If this command returns nothing then the module exist if it does return a 404 the name is available for you to use.

查看更多
走好不送
3楼-- · 2019-01-20 23:31

http://browsenpm.org/ is a new one by nodejitsu that's quite good, features dependency listings, dependency licenses, community info, among other nifty stuff

查看更多
登录 后发表回答