0

I need to reinstall nodejs in windows 7 in a shorter character folder (closer to root, that is) than the one previously used since the character length is giving me problems with some packages.

However, when I reinstall, npm always installs in the PREVIOUS folder. How can I perform a new, fresh installation? Specifically, where I can select the folder where the packages will be installed?

Notice second path.

Thanks.

MauF
  • 461
  • 4
  • 17

1 Answers1

0

I just found out about:

npm config set prefix C:\blahblahblah

Hope this solves my problem.

MauF
  • 461
  • 4
  • 17