# 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のバージョンが正しいことを確認します。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ja.docs.monaca.io/products_guide/monaca_localkit/troubleshooting/error-while-installing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
