nvm-troubleshooting-linux

$npx mdskill add partme-ai/full-stack-skills/nvm-troubleshooting-linux

Diagnose and fix nvm issues on Linux and WSL, including profile loading, PATH errors, and distro-specific problems.

  • Helps resolve nvm not found, command failures, and compatibility issues on Linux distributions and WSL.
  • Integrates with shell environments like bash and uses system commands to check configurations.
  • Decides recommendations by running diagnostic checks to identify distro, shell, and configuration errors.
  • Presents results through command outputs and provides specific fixes like editing profile files.

SKILL.md

.github/skills/nvm-troubleshooting-linuxView on GitHub ↗
---
name: nvm-troubleshooting-linux
description: "Diagnose and fix nvm issues on Linux and WSL, including profile not loading, PATH errors, distro-specific differences, and Alpine compatibility problems. Use when the user reports nvm not found on Linux, nvm command not working in WSL, or distro-specific nvm issues."
license: Complete terms in LICENSE.txt
---

# nvm Troubleshooting (Linux/WSL)

Diagnose and fix common nvm problems on Linux distributions and Windows Subsystem for Linux.

## Workflow

1. **Run diagnostic checks:**
   ```bash
   echo "Shell: $SHELL"
   echo "NVM_DIR: $NVM_DIR"
   cat ~/.bashrc | grep -n nvm
   echo $PATH | tr ':' '\n' | grep nvm
   ```

2. **Identify the distro and shell:**
   ```bash
   cat /etc/os-release | head -2
   echo $SHELL
   # WSL check:
   uname -r | grep -i microsoft && echo "WSL detected"
   ```

3. **Fix profile loading issues** (most common problem):
   ```bash
   # Ensure these lines are in ~/.bashrc (not just ~/.profile):
   export NVM_DIR="$HOME/.nvm"
   [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
   ```

4. **Verify the fix:**
   ```bash
   source ~/.bashrc
   command -v nvm   # Should print "nvm"
   nvm --version
   ```

**Note:** Installation steps belong to nvm-install. For macOS issues, use nvm-troubleshooting-macos.

### Example file map

- `examples/troubleshooting-linux.md` - Linux-specific troubleshooting
- `examples/wsl-troubleshooting.md` - WSL-specific issues
- `examples/alpine-install.md` - Alpine Linux guidance
- `examples/problems.md` - Common problems and solutions
- `examples/compatibility-issues.md` - Known compatibility issues

## Keywords

linux, wsl, troubleshooting, PATH, profile, compatibility, alpine, nvm not found

More from partme-ai/full-stack-skills

SkillDescription
adobe-xd"Guides creation of UI/UX designs, interactive prototypes, reusable components, and design specs in Adobe XD. Use when the user asks about Adobe XD artboards, prototype links, repeat grids, component states, design tokens export, or developer handoff."
angular"Provides comprehensive guidance for Angular framework including components, modules, services, dependency injection, routing, forms, and TypeScript integration. Use when the user asks about Angular, needs to create Angular applications, implement Angular components, or work with Angular features."
ansible"Provides comprehensive guidance for Ansible automation including playbooks, roles, inventory, and module usage. Use when the user asks about Ansible, needs to automate IT tasks, create Ansible playbooks, or manage infrastructure with Ansible."
ant-design-mini"Builds mini-program UIs with Ant Design Mini components for Alipay and WeChat mini-programs. Covers Button, Form, List, Modal, Tabs, NavBar, and 60+ components with theme customization and CSS variable theming. Use when the user needs to create mini-program interfaces with Ant Design Mini, configure themes, or implement mini-program-specific UI patterns."
ant-design-mobile"Builds React mobile UIs with Ant Design Mobile (antd-mobile) components including Button, Form, List, Modal, Picker, Tabs, PullToRefresh, InfiniteScroll, and 50+ mobile-optimized components. Use when the user needs to create mobile-first React interfaces, implement mobile navigation, forms, or data display with Ant Design Mobile."
ant-design-react"Builds enterprise React UIs with Ant Design (antd) including 60+ components (Button, Form, Table, Select, Modal, Message), design tokens, TypeScript support, and ConfigProvider theming. Use when the user needs to create React applications with Ant Design, build forms with validation, display data tables, or customize the Ant Design theme."
ant-design-vueProvides comprehensive guidance for Ant Design Vue (AntDV) component library for Vue 3. Covers installation, usage, API reference, templates, and all component categories. Use when building enterprise-class UI with Vue 3 and Ant Design.
api-doc-generator"Generate API documentation by scanning Controller classes, extracting endpoint URLs, HTTP methods, parameters, and response structures, then producing standardized docs from templates. Use when the user explicitly mentions generating API documentation, creating API docs, scanning interfaces, or documenting REST APIs. Do not trigger for generic documentation requests without explicit API mention."
appium"Provides comprehensive guidance for Appium mobile testing including mobile app automation, element location, gestures, and cross-platform testing. Use when the user asks about Appium, needs to test mobile applications, automate mobile apps, or write Appium test scripts."
ascii-ansi-colorizer"Add an ANSI color layer to existing ASCII/plain-text output (gradient/rainbow/highlights) with alignment-safe rules and a required no-color fallback. Use when the user wants to colorize terminal output, add rainbow effects to CLI text, or style ASCII art with ANSI colors."