World Monitor
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.
Diagnose and fix broken Node.js/Deno installs instead of rm -rf node_modules and the lockfile
作者による原文
一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり
| 人気 | 0/80 | GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます |
|---|---|---|
| 新しさ | 12/12 | 30 日以内のリリースかコード更新で満点 |
| 応答中 | 0/8 | 前回の確認でクラウドのエンドポイントが応答 |
| 利用スコア | 12/100 |
品質: 基本チェック 3/3 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)
使っているAIアプリを選んで、設定をコピーしてください。
ひとことで AI にインストールしてもらう
cleaninstall-node をインストールして。https://mcp.popnx.com/i/ahusan-cleaninstall-node.md に従い、コマンドを見せて、私が OK するまで実行しないで。パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る
チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月25日
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
Claude につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Claude に MCP server cleaninstall-node を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "cleaninstall-node": { "command": "npx", "args": [ "-y", "cleaninstall-node", "mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、cleaninstall-node のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
node -vMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v
一度入れれば、Node.js を使うすべてのツールで使えます
SettingsDeveloperEdit Config
{
"mcpServers": {
"cleaninstall-node": {
"command": "npx",
"args": [
"-y",
"cleaninstall-node",
"mcp"
]
}
}
}cleaninstall-node を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が cleaninstall-node を使っていると言うか、回答に cleaninstall-node のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ cleaninstall-node につなげません
cleaninstall-node はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
A · cleaninstall-node につなげるアプリを使う
B · その他 の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
Claude Code につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Claude Code に MCP server cleaninstall-node を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user cleaninstall-node -- npx -y cleaninstall-node mcp 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、cleaninstall-node のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
node -vMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v
一度入れれば、Node.js を使うすべてのツールで使えます
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
claude mcp add --scope user cleaninstall-node -- npx -y cleaninstall-node mcpcleaninstall-node が一覧にあり、接続済みと表示されれば OK です
cleaninstall-node を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が cleaninstall-node を使っていると言うか、回答に cleaninstall-node のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Cursor に MCP server cleaninstall-node を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "cleaninstall-node": { "command": "npx", "args": [ "-y", "cleaninstall-node", "mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、cleaninstall-node のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
node -vMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v
一度入れれば、Node.js を使うすべてのツールで使えます
cleaninstall-node を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が cleaninstall-node を使っていると言うか、回答に cleaninstall-node のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの VS Code に MCP server cleaninstall-node を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "cleaninstall-node": { "type": "stdio", "command": "npx", "args": [ "-y", "cleaninstall-node", "mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、cleaninstall-node のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
node -vMac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です: node -v
一度入れれば、Node.js を使うすべてのツールで使えます
cleaninstall-node を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が cleaninstall-node を使っていると言うか、回答に cleaninstall-node のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Claude Code
claude mcp add --scope user cleaninstall-node -- npx -y cleaninstall-node mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"cleaninstall-node": {
"command": "npx",
"args": [
"-y",
"cleaninstall-node",
"mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"cleaninstall-node": {
"command": "npx",
"args": [
"-y",
"cleaninstall-node",
"mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"cleaninstall-node": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"cleaninstall-node",
"mcp"
]
}
}
}この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月26日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント ahusan で確認済みです
コードの最終更新:昨日
MITを使用
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
OSV.dev に cleaninstall-node@3.4.1 の登録はありません
このバージョンのパッケージ本体のみ確認。すべての依存関係ではありません · 確認日 2026年11月25日
作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。
[](https://mcp.popnx.com/en/servers/ahusan-cleaninstall-node)質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
まだレビューはありません
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は昨日、最新バージョン(3.4.1)がレジストリに届いたのは昨日です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
同じカテゴリには:World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu
同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.
Manage monitors, status pages, incidents and maintenances in your openstatus workspace.
Validate oh-my-posh configurations and segment snippets against the official schema.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.
| これ cleaninstall-node | World Monitor | openstatus | Oh My Posh Validator | Strata | Jitsu | |
|---|---|---|---|---|---|---|
| 動く場所 | パソコンにインストールが必要 | クラウドで動き、インストール不要 | クラウドで動き、インストール不要 | クラウドで動き、インストール不要 | クラウドで動き、インストール不要 | クラウドで動き、インストール不要 |
| キーが必要 | いいえ | いいえ | いいえ | いいえ | いいえ | いいえ |
| Claude で + から追加 | いいえ | いいえ | いいえ | いいえ | いいえ | いいえ |
| 基本チェック | 3/3 | 4/4 | 4/4 | 4/4 | 1/4 | 4/4 |
| ライセンス | MIT | AGPL-3.0 | AGPL-3.0 | MIT | Apache-2.0 | MIT |
| 料金 | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし |
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
Stop deleting `node_modules` blindly. cleaninstall-node finds out *why* an install is broken and applies the smallest fix, warns you right after a git pull changes your dependencies, and cleans safely when you really do want a fresh start. Works with npm, pnpm, yarn, bun and Deno, in single projects and monorepos.
[Website](https://cleaninstall-node.ahusan.dev/) · npm · Changelog
npx cleaninstall-node doctor # what's wrong? (and --fix to repair it)
npm run dev 2>&1 | npx cleaninstall-node doctor --from-error # explain this error npx cleaninstall-node hook install # warn after pull/checkout/rebase npx cleaninstall-node --install # clean + reinstall, safely
Using an AI coding agent? Give it the MCP server so it diagnoses broken installs instead of running rm -rf node_modules package-lock.json:
claude mcp add cleaninstall -- npx -y cleaninstall-node mcp # tools for the agent
npx cleaninstall-node agent install # guidance + a guard hook
Upgrading from 2.x? Lockfiles are now kept unless you pass
--lockfiles, the CLI asks once before deleting (use-yin scripts), and Node.js 20+ is required. See the changelog.
node_modules, build output, etc.)package.json or pnpm-workspace.yaml.*.log, dist-*) in configuration for flexible matching.agent install adds guidance to AGENTS.md / CLAUDE.md and a Claude Code hook that blocks rm -rf node_modules and lockfile deletion.-y). Lockfiles are kept unless you pass --lockfiles.npm, yarn, pnpm or bun install after cleanup, detected from the packageManager field or your lockfile.package.json, or .cleaninstallnoderc.Compared to manual deletion or other tools:
# Clean and reinstall dependencies in one command
npx cleaninstall-node --install
npx cleaninstall-node --lockfiles --install
npx cleaninstall-node -y
npx cleaninstall-node --dry-run
npx cleaninstall-node -i
doctor: find out *why* before you deleteMost "nuke node_modules" moments have a specific cause. doctor finds it and applies the smallest fix that works:
npx cleaninstall-node doctor # diagnose
npx cleaninstall-node doctor --fix # apply the smallest fix npx cleaninstall-node doctor --json # machine-readable, exit code 1 on errors
🩺 cleaninstall-node doctor — ~/code/app (npm)
✖ node_modules is out of sync with package-lock.json (1 difference) ms: installed 2.1.3, lockfile 2.1.2 Usually happens after git pull / switching branches without reinstalling. ✖ 1 native module was built for a different Node version better-sqlite3: built for ABI 115, this Node needs 127 ✔ Node v22.11.0 matches .nvmrc (22)
2 errors, 0 warnings.
Smallest fix (run with --fix to apply): → npm install → npm rebuild better-sqlite3
| Check | Detects | Fix |
|---|---|---|
| Node version | Running Node vs .nvmrc, .node-version, .tool-versions, volta.node, engines.node | Manual (nvm use). Blocks --fix so nothing is rebuilt for the wrong Node |
| Lockfile sync | node_modules doesn't match the lockfile, e.g. after a git pull (npm, pnpm, yarn v1) | install |
| Direct dependencies | A dependency is missing or installed outside its package.json range (all package managers, workspaces included) | install |
| Native modules | A .node addon was built for another Node ABI, or for another OS/CPU (Docker volume, Rosetta) | rebuild |
| Installer | node_modules was written by a different package manager than the project uses | remove node_modules + install |
| Lockfiles | More than one package manager's lockfile, a mismatch with packageManager, no lockfile at all | Manual |
| pnpm builds | pnpm 10 skipped a package's build scripts (ignoredBuilds) | Manual (pnpm approve-builds) |
| yarn system | yarn v1 installed under a different Node ABI or platform | install |
Native addons are loaded in a separate short-lived process, so a crashing addon can't take doctor down. Skip that check with --no-native.
--from-errorStart from the error you actually got. doctor --from-error explains what it means for this project and folds it into the fix plan:
npm run dev 2>&1 | npx cleaninstall-node doctor --from-error # pipe it in
npx cleaninstall-node doctor --from-error "Cannot find module 'axios'" npx cleaninstall-node doctor --from-error --fix # and fix it
🩺 cleaninstall-node doctor --from-error — ~/code/app (npm)
What the error means ✖ axios is in package.json but not installed axios (^1.7.0) is declared, but node_modules doesn't have it: the install is missing or out of date.
In this project ✖ 2 dependencies are not installed ← likely related ✔ 1 other check passed
Smallest fix (run with --fix to apply): → npm install
The same error can need different fixes. Cannot find module 'x' gets a different answer when x is declared but not installed (install it), only present through another package (add it to package.json), installed at the wrong version, a relative import (a code problem, so no reinstall), or a Node built-in. Recognised errors:
| Error | Example | What it suggests |
|---|---|---|
| Native module, wrong Node | NODE_MODULE_VERSION 115 … requires 127 | Rebuild that one package |
| Native module, wrong OS/CPU | invalid ELF header | Rebuild that package, and stop sharing node_modules with Docker |
| Platform binary missing | rollup, esbuild, sharp, swc …-linux-x64 | Clean reinstall |
| Module not found | Node CJS/ESM, Vite, webpack, Next.js, TS2307 | Depends on the project (see above) |
| Command not found | sh: vite: not found, 'tsc' is not recognized | Install, npx, or which package to add |
| ESM-only package | ERR_REQUIRE_ESM | Newer Node, import(), or pin the old major |
| Subpath not exported | ERR_PACKAGE_PATH_NOT_EXPORTED | Check the installed major |
| Lockfile out of sync | npm ci, ERR_PNPM_OUTDATED_LOCKFILE, yarn --frozen-lockfile | Install locally and commit the lockfile |
| Peer conflict | ERESOLVE | Align versions (--legacy-peer-deps only as a last resort) |
| Wrong Node for a dependency | EBADENGINE, yarn/pnpm engine errors | Switch Node (blocks --fix) |
| Wrong package manager | Corepack mismatch, npm on workspace: | Use the declared package manager |
| Broken install | ENOTEMPTY, interrupted installs | Clean reinstall |
| Other | EINTEGRITY, EACCES, disk full vs. file-watcher ENOSPC, gyp ERR! | Specific steps |
With --json, the report includes error.matches for agents and scripts. An error it doesn't recognise still gets the normal doctor checks.
When an install breaks, AI coding agents tend to run rm -rf node_modules package-lock.json && npm install. That throws away the lockfile, quietly upgrades dependencies, and often doesn't fix the real cause. cleaninstall-node mcp is a Model Context Protocol server that gives the agent the diagnosis and the smallest fix instead.
It's listed on the official MCP Registry as io.github.ahusan/cleaninstall-node and on Glama.
| Tool | What it does | Changes files |
|---|---|---|
explain_error | Explains an error message for this project (everything --from-error knows) and returns a fix plan | No |
diagnose | Full doctor health check and fix plan | No |
apply_fix | Runs the plan: targeted rebuild, install, or (rarely) a clean reinstall. Never touches lockfiles | Yes |
plan_clean | Lists what a cleanup would delete, with sizes | No |
clean | Deletes exactly what plan_clean listed; can reinstall | Yes |
Built-in safety:
apply_fix and clean only run with the plan_id from a preceding read-only call. If the project changed in between, they refuse and the agent has to re-plan, so it can't delete or install something nobody was shown./, your home folder, or a folder without a package.json. Lockfiles are only removed when asked, and fixes are blocked while you're on the wrong Node version.explain_error before deleting node_modules.Claude Code (add --scope project to share it with your team via .mcp.json):
claude mcp add cleaninstall -- npx -y cleaninstall-node mcp
Cursor (.cursor/mcp.json), Windsurf, Claude Desktop (claude_desktop_config.json) and other clients using the mcpServers format:
{
"mcpServers": { "cleaninstall": { "command": "npx", "args": ["-y", "cleaninstall-node", "mcp"] } } }
VS Code (.vscode/mcp.json):
{
"servers": { "cleaninstall": { "type": "stdio", "command": "npx", "args": ["-y", "cleaninstall-node", "mcp"] } } }
Tools default to the folder the client starts the server in, which is normally your project. Every tool also takes a dir argument, and mcp --dir changes the default; use one of these with clients that don't start in a project, such as Claude Desktop. On Windows, if a client can't find npx, use `"command": "cmd", "args": ["/c", "npx", "-