Install OpenSkills Tools
What You'll Learn
After completing this lesson, you will be able to:
- Check and configure Node.js and Git environments
- Use OpenSkills via
npxor global installation - Verify OpenSkills is correctly installed and available
- Troubleshoot common installation issues (version mismatches, network problems, etc.)
Your Current Situation
You might be facing these challenges:
- Uncertain environment requirements: Not sure which versions of Node.js and Git are needed
- Unsure how to install: OpenSkills is an npm package, but unclear whether to use npx or global installation
- Installation failures: Encountering version incompatibility or network issues
- Permission issues: Getting EACCES errors during global installation
This lesson helps you solve these problems step by step.
When to Use This Approach
Use this guide when you need to:
- Use OpenSkills for the first time
- Update to a new version
- Set up a development environment on a new machine
- Troubleshoot installation-related issues
🎒 Prerequisites
System Requirements
OpenSkills has minimum system requirements. Not meeting these requirements will cause installation failures or runtime issues.
Pre-Installation Check
Before starting, confirm you have the following software installed:
- Node.js 20.6 or higher
- Git (used to clone skills from repositories)
Core Concepts
OpenSkills is a Node.js CLI tool with two usage methods:
| Method | Command | Pros | Cons | Use Cases |
|---|---|---|---|---|
| npx | npx openskills | No installation, always uses latest version | Downloads each run (cached) | Occasional use, testing new versions |
| Global Install | openskills | Shorter command, faster response | Requires manual updates | Frequent use, fixed version |
Recommended to use npx, unless you use OpenSkills very frequently.
Follow Along
Step 1: Check Node.js Version
First, check if Node.js is installed and meets version requirements:
node --versionWhy
OpenSkills requires Node.js 20.6 or higher. Lower versions will cause runtime errors.
You should see:
v20.6.0Or a higher version (such as v22.0.0).
Version Too Low
If you see v18.x.x or lower (such as v16.x.x), you need to upgrade Node.js.
If version is too low:
Recommended to use nvm (Node Version Manager) to install and manage Node.js:
# Install nvm (if not already installed)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
# Reload terminal configuration
source ~/.bashrc # or source ~/.zshrc
# Install Node.js 20 LTS
nvm install 20
nvm use 20
# Verify version
node --version# Download and install nvm-windows
# Visit: https://github.com/coreybutler/nvm-windows/releases
# After installation, run in PowerShell:
nvm install 20
nvm use 20
# Verify version
node --versionYou should see (after upgrade):
v20.6.0Step 2: Check Git Installation
OpenSkills needs Git to clone skill repositories:
git --versionWhy
When installing skills from GitHub, OpenSkills uses the git clone command to download repositories.
You should see:
git version 2.40.0(Version number may vary, any output is fine)
Git Not Installed
If you see command not found: git or a similar error, you need to install Git.
If Git is not installed:
# macOS typically has Git pre-installed. If not, use Homebrew:
brew install git# Download and install Git for Windows
# Visit: https://git-scm.com/download/winsudo apt update
sudo apt install gitsudo yum install gitAfter installation, re-run git --version to verify.
Step 3: Verify Environment
Now verify both Node.js and Git are available:
node --version && git --versionYou should see:
v20.6.0
git version 2.40.0If both commands output successfully, the environment is configured correctly.
Step 4: Use npx Method (Recommended)
OpenSkills recommends using npx to run directly without additional installation:
npx openskills --versionWhy
npx automatically downloads and runs the latest version of OpenSkills, no manual installation or update needed. On the first run, it downloads the package to a local cache. Subsequent runs use the cache, so it's very fast.
You should see:
1.5.0(Version number may vary)
How npx Works
npx (Node Package eXecute) is a built-in tool with npm 5.2.0+:
- First run: Downloads package from npm to a temporary directory
- Subsequent runs: Uses cache (expires after 24 hours by default)
- Updates: Automatically downloads the latest version when cache expires
Test installation command:
npx openskills listYou should see:
Installed Skills:
No skills installed. Run: npx openskills install <source>Or a list of installed skills.
Step 5: (Optional) Global Installation
If you use OpenSkills frequently, you can choose to install it globally:
npm install -g openskillsWhy
After global installation, you can use the openskills command directly, no need to type npx each time, with faster response.
You should see:
added 4 packages in 3s(Output may vary)
Permission Issues
If you encounter an EACCES error during global installation, it means you don't have write permission for the global directory.
Solution:
# Method 1: Use sudo (macOS/Linux)
sudo npm install -g openskills
# Method 2: Fix npm permissions (recommended)
# Check global installation directory
npm config get prefix
# Set correct permissions (replace /usr/local with actual path)
sudo chown -R $(whoami) /usr/local/lib/node_modules
sudo chown -R $(whoami) /usr/local/binVerify global installation:
openskills --versionYou should see:
1.5.0Updating Global Installation
If you want to update the globally installed OpenSkills:
npm update -g openskillsChecklist ✅
After completing the above steps, confirm:
- [ ] Node.js version is 20.6 or higher (
node --version) - [ ] Git is installed (
git --version) - [ ]
npx openskills --versionoropenskills --versionoutputs the correct version number - [ ]
npx openskills listoropenskills listruns normally
If all checks pass, congratulations! OpenSkills is successfully installed.
Common Pitfalls
Issue 1: Node.js Version Too Low
Error message:
Error: The module was compiled against a different Node.js versionCause: Node.js version is lower than 20.6
Solution:
Use nvm to install Node.js 20 or higher:
nvm install 20
nvm use 20Issue 2: npx Command Not Found
Error message:
command not found: npxCause: npm version is too low (npx requires npm 5.2.0+)
Solution:
# Update npm
npm install -g npm@latest
# Verify version
npx --versionIssue 3: Network Timeout or Download Failure
Error message:
Error: network timeoutCause: npm repository access is restricted
Solution:
# Use npm mirror (such as Taobao mirror)
npm config set registry https://registry.npmmirror.com
# Retry
npx openskills --versionTo restore default source:
npm config set registry https://registry.npmjs.orgIssue 4: Global Installation Permission Error
Error message:
Error: EACCES: permission deniedCause: No write permission for global installation directory
Solution:
Refer to the permission fix method in "Step 5", or use sudo (not recommended).
Issue 5: Git Clone Failure
Error message:
Error: git clone failedCause: SSH key not configured or network issues
Solution:
# Test Git connection
git ls-remote https://github.com/numman-ali/openskills.git
# If failed, check network or configure proxy
git config --global http.proxy http://proxy.example.com:8080Summary
In this lesson, we learned:
- Environment requirements: Node.js 20.6+ and Git
- Recommended usage method:
npx openskills(no installation needed) - Optional global installation:
npm install -g openskills(for frequent use) - Environment verification: Check version numbers and command availability
- Common issues: Version mismatches, permission issues, network problems
You have now completed OpenSkills installation. In the next lesson, we will learn how to install your first skill.
Coming Up Next
Next, we'll learn Install Your First Skill
You will learn:
- How to install skills from the Anthropic official repository
- Interactive skill selection techniques
- Skill directory structure
- Verify skills are correctly installed
Appendix: Source Code Reference
Click to expand source code locations
Last updated: 2026-01-24
Core Configuration
| Configuration Item | File Path | Line Number |
|---|---|---|
| Node.js version requirement | package.json | 45-47 |
| Package information | package.json | 1-9 |
| CLI entry point | src/cli.ts | 39-80 |
Key Constants
- Node.js requirement:
>=20.6.0(package.json:46) - Package name:
openskills(package.json:2) - Version:
1.5.0(package.json:3) - CLI command:
openskills(package.json:8)
Dependencies
Runtime dependencies (package.json:48-53):
@inquirer/prompts: Interactive selectionchalk: Terminal colored outputcommander: CLI argument parsingora: Loading animations
Development dependencies (package.json:54-59):
typescript: TypeScript compilationvitest: Unit testingtsup: Build tool