Installation Guide
This guide will walk you through installing PinMe on your system. PinMe is available as a Node.js package and can be installed using npm or yarn.
Prerequisites
System Requirements
- Operating System: Windows, macOS, or Linux
- Node.js: Version 16.0 or higher
- Internet Connection: Required for IPFS upload and gateway access
Install Node.js
If you don't have Node.js installed, download it from the official website:
We recommend using the LTS (Long Term Support) version for best stability.
Verify Node.js Installation
node --version
# Should output: v16.0.0 or higher
npm --version
# Should output: 8.0.0 or higher
Installation Methods
Method 1: Using npm (Recommended)
npm install -g pinme
This installs PinMe globally on your system, making the pinme command available everywhere.
Method 2: Using yarn
If you prefer yarn as your package manager:
yarn global add pinme
Verification
After installation, verify that PinMe is correctly installed:
Check Version
pinme --version
View Help
pinme help
If you see the help output without errors, PinMe is successfully installed!
Troubleshooting
Permission Denied (Linux/macOS)
If you get a permission error during installation:
sudo npm install -g pinme
Or use a Node version manager like nvm:
# Install nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
# Install and use latest Node.js
nvm install node
nvm use node
# Install PinMe
npm install -g pinme
Command Not Found
If pinme command is not found after installation:
Check npm global path:
npm config get prefixAdd to PATH (if needed):
# For bash echo 'export PATH=$(npm config get prefix)/bin:$PATH' >> ~/.bashrc source ~/.bashrc
For zsh
echo 'export PATH=$(npm config get prefix)/bin:$PATH' >> ~/.zshrc source ~/.zshrc
3. **Restart your terminal** or run `source ~/.bashrc` (or `~/.zshrc`)
### Windows-Specific Issues
#### Using PowerShell on Windows
If you're using PowerShell and get execution policy errors:
```powershell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Windows PATH Issues
- Open "Environment Variables" from System Properties
- Find "Path" in user variables
- Add:
%APPDATA%\npm
Update PinMe
To update to the latest version:
npm update -g pinme
Or with yarn:
yarn global upgrade pinme
Uninstall PinMe
If you need to remove PinMe:
npm uninstall -g pinme
Or with yarn:
yarn global remove pinme