Category Archives: powershell
the easiest way to install #NodeJS and #NPM on #Windows10
Using OneGet, I’ll tell you how to install #NodeJS in 3 easy steps on powershell.
- open powershell:
Run (Window + R) > powershell. - install #Chocolatety provider:
get-packageprovider -name chocolatey - install #NodeJS
install-package nodejs
#OneGet, the hidden package manager on windows 10
If you are a Linux user, you will probably be familiar with APT-GET the applications package manager.
On windows, I have been using similar pm called “#Chocolatey” but since I upgraded to windows10, I discovered a new way to manage my packages through a new set of powershell cmdlets under a new module called #OneGet.
#OneGet is a package manager for package mangers. you can add package managers to it and manage all your packages though same set of cmdlets.
Here is how it works:
hit powershell (Win+R > and write “powershell”) and follow the post and write these commands.
- Find all package managers: Get-PackageProvider
PS C:\WINDOWS\system32> Get-PackageProvider Name Version DynamicOptions ---- ------- -------------- NuGet 2.8.5.127 {Destination, SkipDependencies, ContinueOnFailure, ExcludeVersion...} msi 10.0.10240.16384 {AdditionalArguments} msu 10.0.10240.16384 {} Programs 10.0.10240.16384 {IncludeWindowsInstaller, IncludeSystemComponent} PSModule 1.0.0.0 {PackageManagementProvider, Location, InstallUpdate, InstallationPolicy...}
- install #Choclatety: Get-PackageProvider -name chocolatey
PS C:\Users\Alaa> Get-PackageProvider -name chocolatey The provider 'chocolatey v2.8.5.130' is not installed. chocolatey may be manually downloaded from https://az818661.vo.msecnd.net/providers/ChocolateyPrototype-2.8.5.130.exe and installed. Would you like PackageManagement to automatically download and install 'chocolatey' now? [Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): Y Name Version DynamicOptions ---- ------- -------------- Chocolatey 2.8.5.130 {SkipDependencies, ContinueOnFailure, ExcludeVersion, ForceX86...}
installing your first package “Google Chrome”: install-package googlechrome
PS C:\WINDOWS\system32> install-package googlechrome The package(s) come from a package source that is not marked as trusted. Are you sure you want to install software from 'chocolatey'? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): Y
and voila,
Your machine is now have Chrome installed without googling and looking for installers online.