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

Edge ブラウザでお気に入りバーを有効にしてお気に入りをインポートする (Windows 10)

Edge ブラウザでお気に入りバーを有効にしてお気に入りをインポートする (Windows 10)

Microsoft Edge のお気に入りバーを有効にしてカスタマイズする方法をご紹介します。他のブラウザからブックマークをインポートする方法もご紹介します。

リモートデスクトップでインストール済みのアプリを表示し、新しいアプリをインストールする [Windows]

リモートデスクトップでインストール済みのアプリを表示し、新しいアプリをインストールする [Windows]

リモートMSIマネージャーでリモートWindowsデスクトップを制御できます。MSIインストーラーファイルを介してインストールされたアプリの管理とトラブルシューティングを簡単に行えます。

Windows Bluetooth ネットワーク スキャナー

Windows Bluetooth ネットワーク スキャナー

Windows 7には、Bluetooth対応の携帯電話からファイルを素早く送受信できる便利なBluetoothファイル転送ウィザードが搭載されています。

BluRip: ブルーレイからMKVへのコンバーター

BluRip: ブルーレイからMKVへのコンバーター

MKV形式またはMatroskaは、無制限の数のビデオ、オーディオ、字幕トラックを保存できる無料のオープンスタンダードコンテナ形式です。ブルーレイディスクのリッピング

DVDとBlu-rayをMKV形式に変換する簡単な方法

DVDとBlu-rayをMKV形式に変換する簡単な方法

以前、オープンソースのBlu-rayから.mkvへのコンバーターであるBluRipのガイドを紹介しました。読者のericcovさんからのご指摘のおかげで、今日は

IPアドレス範囲を指定して複数のIPアドレスにpingを実行するPinger

IPアドレス範囲を指定して複数のIPアドレスにpingを実行するPinger

ネットワーク分析は不可欠です。ネットワークエンジニアは常にネットワークを監視し、ネットワークに接続されているすべてのコンピュータを追跡しています。以前は、

TypingAid – Windows用テキスト自動補完ユーティリティ

TypingAid – Windows用テキスト自動補完ユーティリティ

TypingAidは、初心者がタイピングを学ぶのに役立つツールのように聞こえるかもしれませんが、実際にはポータブルな自動補完ツールです。

ユニバーサルビューアであらゆるファイルを開いて表示する [Windows]

ユニバーサルビューアであらゆるファイルを開いて表示する [Windows]

ファイルビューアは近年豊富に存在し、幅広い機能を備えた優れたソリューションが数多く存在します。おそらく最も人気のあるものの一つは

PDF情報を使用してPDF文書のプロパティを変更する

PDF情報を使用してPDF文書のプロパティを変更する

PDF Infoは、PDFファイルのプロパティを変更できるツールです。作成者、タイトル、件名、キーワード、作成者、プロデューサー、PDFのプロパティを変更できます。

Windows 7でメモ帳のステータスバーを有効にする方法

Windows 7でメモ帳のステータスバーを有効にする方法

Windows 7の標準搭載メモ帳では、デフォルトではステータスバー(ウィンドウ下部)は表示されません。しかし、基本的な使い方を知っておく必要がある場合もあります。