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

PDFSamでPDFファイルを結合、マージ、分割する方法

PDFSamでPDFファイルを結合、マージ、分割する方法

PDFSamは、PDFファイルを素早く結合、マージ、分割できる無料のオープンソースツールです。文字通り何百ものソフトウェアやサービスが存在します。

VSPE – 無料の仮想シリアルポートエミュレータをダウンロード

VSPE – 無料の仮想シリアルポートエミュレータをダウンロード

仮想ドライブエミュレーターはご存知でしょうが、仮想シリアルポートエミュレーターについて聞いたことがありますか?ソフトウェアエンジニアや開発者であれば、

Windows 7 のドキュメントと設定が見つかりませんか?

Windows 7 のドキュメントと設定が見つかりませんか?

Windows 7のドキュメントと設定に関する様々な不満を、ほぼすべてのフォーラムで目にしてきました。ほとんどの不満は、これにアクセスできないというものです。

XdN TweakerでWindows 7を調整する

XdN TweakerでWindows 7を調整する

以前、TweakNow WinSecretやEnhancemyse7enといったいくつかの調整ユーティリティをレビューしました。今日、また別の素晴らしい調整ユーティリティを見つけました。

Windows 10でゲームのFPSを確認する方法

Windows 10でゲームのFPSを確認する方法

Windows 10でゲームのFPSを確認する方法

GmailがOutlookのサインイン試行をブロックする問題を修正する方法

GmailがOutlookのサインイン試行をブロックする問題を修正する方法

Gmailは、期待通りのセキュリティを誇るメールサービスです。2要素認証に加え、その他の予防措置も提供しています。

Photoshop CCで明るいテーマと暗いテーマを設定する方法

Photoshop CCで明るいテーマと暗いテーマを設定する方法

長時間使用するアプリは、大きな負担となる可能性があります。ブラウザのようなアプリは、昼夜を問わず常に使用するものです。

フォルダを移動せずにDropboxにバックアップする

フォルダを移動せずにDropboxにバックアップする

Dropboxは、データを自動的にバックアップし、使いやすいウェブインターフェースでどこからでもアクセスできる優れた方法です。

Windows 用オンスクリーン音量コントロールインジケーター

Windows 用オンスクリーン音量コントロールインジケーター

メーカーによっては、サウンドカードやノートパソコンに、画面上で音量調節インジケーターを表示するソフトウェアが搭載されているものもあります。

Hamster Free eBook Converterで電子書籍ファイルをあらゆるデバイスに変換

Hamster Free eBook Converterで電子書籍ファイルをあらゆるデバイスに変換

複数の電子書籍コンバータを使い分けて文書や書籍を異なるデバイス用に変換するのが面倒な場合は、Hamster Free Book Converterを試してください。これは