Where does npm install packages?

后端 未结 23 1381
梦毁少年i
梦毁少年i 2020-11-22 06:03

Can someone tell me where can I find the Node.js modules, which I installed using npm?

23条回答
  •  遥遥无期
    2020-11-22 06:34

    Expanding upon other answers.

    npm list -g
    

    will show you the location of globally installed packages.

    If you want to output that list to a file that you can then easily search in your text editor:

    npm list -g > ~/Desktop/npmfiles.txt
    

提交回复
热议问题