+5 votes
573 views
How to update NPM with PowerShell in Windows 10

in JavaScript by (552k points)
reopened | 573 views

1 Answer

+3 votes
Best answer

Update NPM with Windows 10 PowerShell

There are certain tools that are essential when executing certain types of actions in Windows 10 and one of them is oriented towards thousands of developers and is NPM..

What is NPM?
NPM (Next Popular Module), is a package manager for JavaScript and contains one of the largest software records currently, thanks to NPM, it will be possible to analyze and execute reusable code packages and compile them in much more dynamic new ways.

We may use NPM to install, share and distribute code, manage dependencies on multiple projects and share or receive comments with others.

NPM features
Within its characteristics we have:
  • Manage permissions for multiple team members
  • Simplify package management with security groups and configuration in a simple way.
  • Publish and manage packages in a private namespace
  • Easy to use.

Today, many applications require NPM, so it is a good practice to update it from time to time to receive all its news and features..

Today in TechnoWikis we will analyze how to update NPM using the Windows PowerShell utility.

It is worth noting that one of the most useful options for updating NPM is to download the Nodejs MSI file in the following link:

NPM

Once downloaded, we proceed with its installation on the previous version of NPM in Windows 10 and this will be updated automatically..

To keep up, remember to subscribe to our YouTube channel! SUBSCRIBE

Update NPM with Windows 10 PowerShell

Step 1

To perform this process through Windows PowerShell, we will access the console as administrators and run the following lines:
 Set-ExecutionPolicy Unrestricted -Scope CurrentUser -Force npm install -g npm-windows-upgrade 
image
Step 2

Once this installation process is complete, we will execute the following to update NPM:
 npm-windows-upgrade 
Step 3

When executing this line we will see the following options: image
Step 4

There we will select the version to be updated with the scroll arrows and pressing Enter, we will see that the update process begins: image
Step 5

Once the update process is finished we will see the following message: image

It's that simple we have updated NPM through PowerShell.


by (3.5m points)
edited

Related questions

+4 votes
1 answer
asked Nov 2, 2019 in Windows 10 by backtothefuture (552k points) | 299 views
+4 votes
1 answer
asked Sep 19, 2019 in Windows 10 by backtothefuture (552k points) | 343 views
+5 votes
1 answer
+4 votes
1 answer
+3 votes
1 answer
asked Sep 29, 2019 in Windows 10 by backtothefuture (552k points) | 288 views
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users