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?
We may use NPM to install, share and distribute code, manage dependencies on multiple projects and share or receive comments with others.
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
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:
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
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
Once this installation process is complete, we will execute the following to update NPM:
When executing this line we will see the following options:
There we will select the version to be updated with the scroll arrows and pressing Enter, we will see that the update process begins:
Once the update process is finished we will see the following message:
It's that simple we have updated NPM through PowerShell.