Friday, 25 September 2020

Installing Node.js on Win 10 is getting tricky. Need help deciding what to do or where to go.

I've got this brand new workstation for me and am installing everything from scratch.I'm developing frontend code in React, Gatsby and, sometimes, Next.js. In my previous machine, I had a admin user and a regular one (that I used to work), from which I installed node.js - can't recall if I did it as admin - but for this one I was intending of using nvm-windows, since it's recommended in Windows documentation.So, in this new machine I'm using two users as well, but allowing my regular user to perform admin actions by using it's password. First thing I noticed because of this is that after I downloaded and installed nvm-windows, it wouldn't be found on regular user's Powershell but in admin's. Then, running Powershell with admin privileges I was able to list available node.js versions and install the latest and the last LTS. That ran ok and I can switch between them but Powershell won't find npm in admins account nor in Powershell with admin privileges on regular account.That said, I believe I'm going the wrong way and before I mess this up even more, I'd like to know if this is the "right" way to setup an dev enviroment for me so it won't be a bummer in the future. Any advices?System info: - Win 10 ver. 1909 (18363.1110) - nvm 1.1.7 - node.js ver installed were 14.12.0 (latest) and 12.18.4

Submitted September 25, 2020 at 02:58PM by edbucker

No comments:

Post a Comment