Install Node.js on a different hard drive from C to D

后端 未结 3 1048
梦谈多话
梦谈多话 2021-01-12 15:44

I have node and npm with existing packages currently installed to the C drive on Windows. My C drive is an SSD with a low amount of space. How can I move the node installati

3条回答
  •  长情又很酷
    2021-01-12 16:28

    I know this post was basically forever ago, but I found a much easier way than manipulating the path. Simply uninstall NPM using the npm uninstaller, reinstall on your other drive with a new folder called nodejs. It'll create the folder in there appropriately and npm will be successfully installed on you D drive.

提交回复
热议问题