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

in JavaScript by (358k points)
reopened | 313 views

1 Answer

+3 votes
Best answer

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 (2.2m points)
edited

Related questions

+4 votes
1 answer
asked Nov 2, 2019 in Windows 10 by backtothefuture (358k points) | 131 views
+4 votes
1 answer
asked Sep 19, 2019 in Windows 10 by backtothefuture (358k points) | 170 views
+4 votes
1 answer
+3 votes
1 answer
asked Sep 29, 2019 in Windows 10 by backtothefuture (358k points) | 136 views
+5 votes
1 answer
Please leave a comment about whether the solution works or not (with device model)   [X]Close
6,866 questions
6,963 answers
274 comments
2 users