How to search for a particular package by npm?

Asked

Viewed 100 times

0

I started a project in React and want to know how I search for a certain package installed directly by npm ?

  • 1

    To list installed packages: npm list -g --depth=0 and to list a particular package: npm list -g --depth=0 | grep nome-do-pacote

2 answers

1


To fetch a package, run the following command:

npm search pacote_desejado

For example

npm search express

will bring you a result like this:

inserir a descrição da imagem aqui

Thanks!

-2

Run the command below on the terminal:

npm list | grep {pacote_desejado}   

Browser other questions tagged

You are not signed in. Login or sign up in order to post.