Where should my npm modules be installed on Mac OS X?

后端 未结 4 1148
长情又很酷
长情又很酷 2020-12-12 23:25

I was attempting to upgrade phonegap via npm when I started running into trouble. Long story short, there are two node_modules directo

4条回答
  •  攒了一身酷
    2020-12-12 23:50

    Second Thomas David Kehoe, with the following caveat --

    If you are using node version manager (nvm), your global node modules will be stored under whatever version of node you are using at the time you saved the module.

    So ~/.nvm/versions/node/{version}/lib/node_modules/.

提交回复
热议问题