npm view global package/path [mac]

 

npm root -g

The default global path under Mac is:
/usr/local/lib/node_modules

The default global path under Ubuntu is:
/usr/lib/node_modules

npm ls -g
to view all installed global packages

npm ls -g --depth 0 | grep packageName
--depth 0 View only the first-level directory

 

WeChat official account search: Li Datou . (or scan the QR code) Come and play with me.

More [front-end technology group] and [recommended positions] resources are waiting for you.

I also invite everyone to drink milk tea on the official account from time to time!

If you want to chat with me or have any questions, you can find me on the official account.

Waiting for you~

 

Guess you like

Origin blog.csdn.net/ljy_1024/article/details/103610443