follow these steps for window 10 or window 8
- press WIN + R and type cmd and enter
npm i -g npm@next
npm i -g npm@next
OR npm i -g node@{version}
- Remove environment path
C:\Program Files\nodejs
from envrionment variable PATH.
- type
refreshenv
in cmd
Now you will have your new version which you installed.
Note: If you don't remove path. You will see the previous version of node.