Where does npm install packages?

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

    If you have Visual Studio installed, you will find it comes with its own copy of node separate from the one that is on the path when you installed node yourself - Mine is in C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VisualStudio\NodeJs.

    If you run the npm command from inside this directory you will find out which node modules are installed inside visual studio.

提交回复
热议问题