> For the complete documentation index, see [llms.txt](https://ja.docs.monaca.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ja.docs.monaca.io/products_guide/monaca_localkit/troubleshooting/error-while-installing.md).

# Error while installing

Windows環境で、nvmのバージョンが `1.1.7` 以下で、npmのバージョンが `8.x.x` の場合、このエラーが発生することがあります。この問題は、NPM github issue - <https://github.com/npm/cli/issues/4234> ですでに報告され解決されています。

この問題を解決するには、以下の手順を実行してください。

* `nvm` を最新バージョンにアップグレードします。
  * <https://github.com/coreybutler/nvm-windows/releases/download/1.1.9/nvm-setup.exe> (2022/10/21現在)
  * exeファイルを実行し、インストール手順に従います。
  * 必要であればPCを再起動します。
* `PowerShell` を管理者権限で実行します。
  * `node` を再インストールします。例）
    * nvm uninstall 16.18.0
    * nvm install 16.18.0
    * nvm use 16.18.0
  * Localkitを再起動します。
    * 起動ログを確認し、node/npmのバージョンが正しいことを確認します。
