vjdipaola/skill-forge/windows-node-sandbox-troubleshooting

Claude Code and agent skill by vjdipaola/skill-forge

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Troubleshoot Windows-specific Node/npm issues in Codex or sandboxed agent sessions. Use when Node or npm misbehaves inside Codex or sandboxed agent sessions on Windows.

Install

npx vskill@latest install vjdipaola/skill-forge/windows-node-sandbox-troubleshooting

SKILL.md

The same SKILL.md was published earlier as vjdipaola/skill-forge/windows-node-sandbox-troubleshooting.

Windows Node Sandbox Troubleshooting

Use this workflow for Windows execution issues in automated or sandboxed Node workflows.

Known Patterns And Fixes

1) npm blocked by PowerShell execution policy

Symptom:

  • npm.ps1 cannot be loaded because running scripts is disabled

Fix:

  • Use npm.cmd ... instead of npm ....
2) UNC workdir fallback to C:\Windows

Symptom:

  • CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory.
  • npm ERR! enoent Could not read package.json ... C:\Windows\package.json

Fix:

  • Use a normal drive-letter path for workdir, such as C:\Users\...\repo, not \\?\....
  • This matters even if the visible current directory was supplied to the agent as a UNC-style path.
3) spawn EPERM during test or build

Symptom:

  • esbuild, vite, next, or worker process startup fails with spawn EPERM

Fix:

  • Re-run the command with the tool's elevated or unrestricted execution mode.
4) BOM corruption in JSON or TS config

Symptom:

  • Unexpected token '' in package.json or another config file

Fix:

  • Rewrite the file as UTF-8 without BOM.
  • In PowerShell, use System.Text.UTF8Encoding($false) with WriteAllText.

Recovery Order

  1. Switch to npm.cmd.
  2. Replace UNC workdir values with a normal C:\... path.
  3. Retry with elevated execution if worker startup fails.
  4. Strip BOM from recently edited config files if parsing errors remain.
  5. Re-run npm.cmd run test, npm.cmd run lint, and npm.cmd run build.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/vjdipaola/skill-forge/windows-node-sandbox-troubleshooting/badge)](https://verified-skill.com/skills/vjdipaola/skill-forge/windows-node-sandbox-troubleshooting)

Something wrong with this skill or its page? Tell us.