Agent Skill · Appium

environment-setup-node

Prepare and validate Node.js and npm environment

Provider: Appium Path in repo: skills/environment-setup-node/SKILL.md

Skill body

environment-setup-node

Goal

Prepares a stable Node.js and npm environment by validating the active Node runtime, confirming npm availability, and checking basic npm connectivity and health diagnostics.

Decision Logic

Instructions

  1. Detect Node version management tools
    command -v nvm || true
    command -v fnm || true
    command -v asdf || true
    

    Windows PowerShell:

    Get-Command fnm -ErrorAction SilentlyContinue
    Get-Command nvm -ErrorAction SilentlyContinue
    Get-Command winget -ErrorAction SilentlyContinue
    

    Prefer this order when available: fnm / nvm / asdf. If none is available on Windows, install fnm non-interactively and continue:

    winget install Schniz.fnm --accept-source-agreements --accept-package-agreements
    

    Then initialize fnm in the current shell:

    $fnmDir = "$env:LOCALAPPDATA\Microsoft\WinGet\Packages\Schniz.fnm_Microsoft.Winget.Source_8wekyb3d8bbwe"
    if (Test-Path $fnmDir) { $env:PATH = "$fnmDir;$env:PATH" }
    fnm env --shell powershell | Invoke-Expression
    fnm install --lts
    fnm use lts-latest
    fnm default lts-latest
    

    Persist for all new Windows PowerShell sessions (beginner-friendly):

    $profileDir = Split-Path -Parent $PROFILE
    if (-not (Test-Path $profileDir)) { New-Item -ItemType Directory -Force $profileDir | Out-Null }
    if (-not (Test-Path $PROFILE)) { New-Item -ItemType File -Force $PROFILE | Out-Null }
    $fnmDir = "$env:LOCALAPPDATA\Microsoft\WinGet\Packages\Schniz.fnm_Microsoft.Winget.Source_8wekyb3d8bbwe"
    Add-Content $PROFILE "`n# fnm bootstrap"
    Add-Content $PROFILE ('$env:PATH = "{0};$env:PATH"' -f $fnmDir)
    Add-Content $PROFILE 'fnm env --shell powershell | Invoke-Expression'
    

    Profile location example on Windows PowerShell:

    $PROFILE
    

    If npm is blocked with a script policy error (npm.ps1 cannot be loaded), set per-user execution policy:

    Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
    

    Then open a new terminal tab, or reload profile in current terminal:

    . $PROFILE
    
  2. Verify Node and npm availability
    node -v
    npm -v
    

    Windows PowerShell:

    node -v
    npm -v
    
  3. Validate npm connectivity
    npm ping
    

    Windows PowerShell:

    npm ping
    

    Ensure connectivity succeeds before continuing.

  4. Validate active Node runtime details
    node -p 'process.versions.node'
    

    Windows PowerShell:

    node -p "process.versions.node"
    

    Confirm the runtime is an active LTS release; if not, switch Node version using the detected version manager.

  5. Windows troubleshooting quick checks (when node is still not found)
    $PROFILE
    Test-Path $PROFILE
    Get-Content $PROFILE
    Get-Command fnm -ErrorAction SilentlyContinue
    Get-Command node -ErrorAction SilentlyContinue
    

    If Get-Command node is empty, run:

    . $PROFILE
    fnm use lts-latest
    node -v
    npm -v
    
  6. Agent completion criteria Mark complete only when all are true:
    • node -v and npm -v succeed
    • npm registry connectivity check succeeds (npm ping)
    • active Node runtime is an LTS release

Constraints

Skill frontmatter

metadata: {"last_modified" => "Thu, 12 Mar 2026 03:45:00 GMT"}

Work with this as data

Every skill here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for agent skills

4 MCP tools reach this
  • find_skillsBrowse and filter every skill in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This skill
curl "https://apis.io/api/v1/skills/environment-setup-node"
All agent skills
curl "https://apis.io/api/v1/skills?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.