node-pnpm-locator
Node Pnpm Locator
Overview
Locate Node.js and pnpm binaries on this machine and produce a safe PATH fix or command prefix so repo commands can run reliably.
When to Use
node,pnpm,npx, orcorepackreturnscommand not found.- CI or a non-interactive shell cannot find Node-related binaries.
Do not use if node -v and pnpm -v already succeed in the current shell.
Quick Start
- Run the helper script:
bash /Users/peiwang/Projects/nextbot/.codex/skills/node-pnpm-locator/scripts/locate_node_pnpm.sh
- If it prints a PATH prefix, re-run your command with it, for example:
PATH=/opt/homebrew/bin:$PATH pnpm -v
Workflow
- Check current PATH resolution with
command -v. - Search common locations:
- Homebrew:
/opt/homebrew/bin,/usr/local/bin - NVM:
~/.nvm/versions/node/*/bin
- Homebrew:
- Choose the fix:
- One-off: prefix the command with
PATH=...:$PATH. - Persistent: add the PATH export to
~/.zshrcor~/.bashrcand restart the shell.
- One-off: prefix the command with
Common Mistakes
- Running in a non-interactive shell that does not load your shell rc file.
- Installing Node via Homebrew/NVM but not exposing their
bindirectory in PATH.
Resources
scripts/locate_node_pnpm.sh: prints detected binaries and suggests a PATH fix.
More from peiiii/nextclaw
ui-ux-pro-max
Use when the user wants professional UI/UX design guidance, design-system generation, UX review, or stack-specific frontend guidance through a bundled local UI/UX Pro Max dataset and Python search runtime.
2impeccable
Use when the user wants distinctive, production-grade frontend design, anti-generic AI aesthetics, UX critique, technical UI audits, or final polish through bundled Impeccable references and an optional upstream detector CLI.
2lark-cli
Use when the user wants to operate Lark or Feishu via the local lark-cli (@larksuite/cli), including install, app credentials, OAuth, readiness checks, and safe read/write boundaries.
1opencli
Use when the user wants to use websites, browser login sessions, Electron apps, or external CLIs through a local OpenCLI setup, especially when setup guidance, readiness checks, and safe task execution are needed.
1find-skills
Use when the user wants to discover, evaluate, and install external agent skills from the open skills ecosystem, especially through the Vercel Skills CLI.
1superpowers
Use when the user wants a disciplined software development workflow with design-first planning, implementation plans, TDD, systematic debugging, code review, or verification-before-completion, adapted from obra/superpowers.
1