Where does npm install packages?

后端 未结 23 1774
梦毁少年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:42

    You can find globally installed modules by the command

    npm list -g
    

    It will provide you the location where node.js modules have been installed.

    C:\Users\[Username]\AppData\Roaming\npm
    

    If you install node.js modules locally in a folder, you can type the following command to see the location.

    npm list
    

提交回复
热议问题