How to fix ‘Unable to find module repositories’ error in PowerShell on Windows 10

PowerShell does a few basic things but there are quite a few modules available for it that you can install and use them to get more out of it. Installing a module in PowerShell is pretty easy however, sometimes when you try to install a module you get the error ‘Unable to find module repositories’ which prevents you from installing it. If you’re getting this error, the fix is pretty easy.

How to fix ‘Unable to find module repositories’ error in PowerShell on Windows 10

Fix ‘Unable to find module repositories’

Open PowerShell with admin rights and run the following command;

Register-PSRepository -Default

Once the command has run, the problem should be resolved. Run the command to install a module or add a repository and this time, it should work. The command completes within a few seconds.

How to fix ‘Unable to find module repositories’ error in PowerShell on Windows 10

Other solutions

The ‘Unable to find module repositories’ error appears when PowerShell cannot find the repository that you’re adding, or the module that you’re trying to add since it too comes from a repository. The command re-registers the repository gallery which is why, in most cases, it will fix the problem.

Other reasons this error may appear is if PowerShell is unable to communicate with the repository that you want to add. This could be a problem with your internet. If you’re using a VPN or a Proxy service, disable it and then try installing the module again. It’s worth running the Register command again after disabling the proxy before you attempt to install a module.

If disabling the proxy is not an option, you need to enable the proxy for PowerShell as well. If you’re using a proxy via a desktop app, it is highly likely PowerShell is bypassing it. Once you enable the proxy for PowerShell, run the Register command again and then try installing the module.

You should also make sure that you’re running the latest version of PowerShell. If you’re not running the latest version of Windows 10, your version of PowerShell might not be the latest and that’s why the command might be failing. You should also uninstall older versions of PowerShell.

Lastly, and this really is a last ditch effort, try changing the execution policy and then import or install the module. You should also make sure the module is still available. Try installing a different module to see if it installs and if it does, perhaps the problem is with the other module that you’re trying to install. Some modules might have other, alternate methods for installing them so try those.

Leave a Comment

Windows 8.1 Update 1 の新機能

Windows 8.1 Update 1 の新機能

Windows 8に関する重要な情報を最後に取り上げたのは、2013年10月でした。そのとき、Windows 8で導入された多くの新機能について取り上げました。

Mourao Wallpaper Changerでデスクトップの壁紙を自動変更

Mourao Wallpaper Changerでデスクトップの壁紙を自動変更

Mourao Wallpaper Changer をご覧ください。デスクトップの背景を変更するプロセスを自動化するのに最適なツールです。

Blenderで3Dモデル、アニメーション、ムービーを無料で作成する方法

Blenderで3Dモデル、アニメーション、ムービーを無料で作成する方法

豊富な機能を備えた無料の3Dコンテンツ作成スイート、Blenderのパワーを体験してください。魅力的な3Dモデル、アニメーション、ムービーを簡単に作成できます。

あらゆるウェブページの高画質サムネイルをキャプチャする方法

あらゆるウェブページの高画質サムネイルをキャプチャする方法

FirefoxのAbductionアドオンを使ってウェブサイトのスクリーンショットを撮っています。なかなか良い仕事をしてくれます。サムネイルを作るなら、まずは

AvaCamを使ってウェブカメラで動画を録画し、写真を撮る

AvaCamを使ってウェブカメラで動画を録画し、写真を撮る

ソフトウェアが付属していないウェブカメラを購入しましたか?あるいは、ウェブカメラに付属していたソフトウェアやプリインストールされたソフトウェアに満足していないかもしれません。

KeepNote: ノートブック階層を備えたメモツール

KeepNote: ノートブック階層を備えたメモツール

これまでNoteFlyやNotelinerといった優れたメモアプリをいくつかテストしてきましたが、今回新たにKeepNoteという、シンプルで効率的なツールが加わりました。

Windows 7 タブレットに Windows 8 をインストールする方法 [ガイド]

Windows 7 タブレットに Windows 8 をインストールする方法 [ガイド]

Windows 7オペレーティングシステムを実行できるタブレットをお持ちの場合は、よりタブレット向けのWindows OSを試してみることに興味があるかもしれません。

OSFMountでディスクイメージをRAMにマウントして高速ディスクアクセスを実現

OSFMountでディスクイメージをRAMにマウントして高速ディスクアクセスを実現

OSFMount のユニークな機能 - ディスク イメージを直接 RAM にマウントして、アクセスを高速化し、パフォーマンスを向上させます。

GIF オプティマイザー: GIF をオンラインで圧縮・最適化

GIF オプティマイザー: GIF をオンラインで圧縮・最適化

GIF オプティマイザーを使用して、GIF をオンラインで圧縮および最適化し、読み込みを高速化し、共有をスムーズにし、パフォーマンスを向上させます。

バージョンを削除してWindows 7ユニバーサルDVDを作成する

バージョンを削除してWindows 7ユニバーサルDVDを作成する

Windows XPのインストールは、インストールディスクのバージョンの違いが大きな原因で、多くのユーザーにとって非常に面倒な作業でした。ほとんどの人は