L
L
lukoie2018-07-13 20:42:55
Windows
lukoie, 2018-07-13 20:42:55

How to update npm using npm itself in Win10/Openserver?

Actually, the question is in the title.
There is an OpenServer. Installed node with npm. How to update it to the latest version?
You don't have to offer to go to the site and download, plz. I want it that way.
Now:
> npm -v
5.6.0
> npm view npm versions --json
...
"6.2.0-next.1"
]
> npm view npm version
6.1.0
Actually, npm install -g [email protected] on Windows does not helps
What to do to update?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Osin, 2018-09-21
@lukoie

npm install -g --production npm update

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question