A
A
Andreas Shopen2020-05-06 14:00:22
cmd/bat
Andreas Shopen, 2020-05-06 14:00:22

Why can't update node.js version via command line?

5eb297df1723a631396817.png

At the beginning, I update npm and everything seems to be OK, but then the npm i -gn command does not install the node version manager on my PC and therefore I cannot update it. As I understand it, there are some troubles with the version of Windows, but it is 64 bit and licensed, so it's strange that he swears at it.

*yes, I can download the .exe from the off site and update the node otherwise, but still, why does this problem occur on the command line and how to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Sharomet, 2020-05-06
@Al_Shopen

Install nvm - it will solve a lot of problems and save a lot of time

P
PQR, 2020-05-06
@PQR

The package you install with the command npm i -g nis https://www.npmjs.com/package/n - it doesn't work on Windows at all (and it's not about licensing or poor operating system). The Readme says exactly this:

Note: n is not supported natively on Windows.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question