This guide provides comprehensive installation instructions for all platforms and use cases.
For most users, the NPM global installation is the fastest way to get started:
# Install globally
npm install -g datapilot-cli
# Verify installation
datapilot --versiondatapilot-cli, NOT datapilot (which is deprecated)
Advantages:
- Pre-built packages (no compilation required)
- Automatic PATH configuration
- Easy updates with
npm update -g datapilot-cli - Works on all platforms
Installation:
npm install -g datapilot-cliVerification:
datapilot --version
datapilot --helpAdvantages:
- No installation required
- Always uses latest version
- No PATH configuration needed
- Perfect for CI/CD pipelines
Usage:
# Run commands directly
npx datapilot-cli all data.csv
npx datapilot-cli --version
npx datapilot-cli --helpAdvantages:
- Latest development version
- Full control over build process
- Contribute to development
Requirements:
- Node.js 20+
- npm 7+
- TypeScript compiler
Installation:
git clone https://github.com/Mrassimo/datapilot.git
cd datapilot
npm install
npm run build
npm linkVerification:
npm test
npm run lint
datapilot --versionWindows users may encounter PATH issues. Here are the solutions:
No setup required - works immediately:
npx datapilot-cli all data.csvIf datapilot command is not recognised after global installation:
Step 1: Find your npm global directory
npm config get prefixStep 2: Add to Windows PATH
- Copy the path returned from Step 1 (e.g.,
C:\Users\YourName\AppData\Roaming\npm) - Press
Windows + R, typesysdm.cpl, press Enter - Click "Advanced" tab → "Environment Variables"
- Find "PATH" in System Variables, click "Edit"
- Click "New" and add your npm global path
- Click "OK" to close all dialogs
- Restart PowerShell/Command Prompt
Step 3: Verify installation
datapilot --version# Replace [npm-prefix] with path from 'npm config get prefix'
[npm-prefix]\datapilot --version- PowerShell vs Command Prompt: Both work equally well
- Admin privileges: Not required for user-level installation
- Antivirus software: May flag npm packages; add exceptions if needed
- Corporate networks: May require proxy configuration (see Network Configuration)
Standard npm installation usually works without issues:
npm install -g datapilot-cliIf you get permission errors:
# Option 1: Use npm prefix to install in user directory
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
npm install -g datapilot-cli
# Option 2: Use sudo (not recommended)
sudo npm install -g datapilot-cliStandard installation:
npm install -g datapilot-cliUbuntu/Debian specific:
# If Node.js not installed
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
# Install DataPilot
npm install -g datapilot-cliRedHat/CentOS/Fedora specific:
# If Node.js not installed
curl -fsSL https://rpm.nodesource.com/setup_lts.x | sudo bash -
sudo dnf install nodejs npm
# Install DataPilot
npm install -g datapilot-cliAlpine Linux:
apk add nodejs npm
npm install -g datapilot-cliFor corporate environments with proxy servers:
# Set npm proxy
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
# Install with proxy
npm install -g datapilot-cliDataPilot requires internet access for:
- Initial npm installation
- Package updates
- No runtime internet access required (purely local processing)
Required domains:
registry.npmjs.org(npm package registry)nodejs.org(Node.js downloads if needed)
For environments without internet access, see Enterprise Installation Guide for:
- Offline package bundles
- Standalone executables
- Corporate deployment strategies
FROM node:18-alpine
RUN npm install -g datapilot-cli
WORKDIR /data
ENTRYPOINT ["datapilot"]Usage:
# Build image
docker build -t datapilot .
# Run analysis
docker run -v $(pwd):/data datapilot all data.csv# Check version
datapilot --version
# Test with sample data
echo "name,age,city" > test.csv
echo "John,25,NYC" >> test.csv
echo "Jane,30,LA" >> test.csv
datapilot all test.csv# Test all major formats
datapilot all test.csv # CSV
datapilot all test.json # JSON (create test file)
datapilot all test.xlsx # Excel (create test file)
# Test multi-file analysis
datapilot engineering test1.csv test2.csv"datapilot: command not found"
- Solution: Use
npx datapilot-clior fix PATH configuration - Check:
npm config get prefixand verify PATH includes this directory
"Permission denied" errors
- Solution: Don't use sudo with npm. Configure user-level npm directory
- Alternative: Use npx which doesn't require global installation
"Package not found" errors
- Solution: Ensure you're installing
datapilot-clinotdatapilot - Check:
npm search datapilot-clito verify package availability
Slow installation
- Cause: Network issues or npm registry problems
- Solution: Try
npm install -g datapilot-cli --registry https://registry.npmjs.org/
TypeScript compilation errors (from source)
- Solution: Ensure Node.js 20+ and latest npm version
- Check:
node --versionandnpm --version
Enable verbose installation logging:
npm install -g datapilot-cli --loglevel verboseClear npm cache:
npm cache clean --force
npm install -g datapilot-cliCheck npm configuration:
npm config list
npm config get registry
npm config get prefix# Check current version
datapilot --version
# Check for updates
npm outdated -g datapilot-cli# Update to latest version
npm update -g datapilot-cli
# Or reinstall
npm uninstall -g datapilot-cli
npm install -g datapilot-cli# Remove global installation
npm uninstall -g datapilot-cli
# Verify removal
datapilot --version # Should show "command not found"- Minimum: Node.js 20.0.0
- Recommended: Node.js 18.0.0 or later (LTS)
- Maximum tested: Node.js 22.x
- Minimum: npm 7.0.0
- Recommended: npm 8.0.0 or later
- Windows: Windows 10/11, Windows Server 2019/2022
- macOS: macOS 10.15 (Catalina) or later
- Linux: Ubuntu 18.04+, CentOS 7+, Alpine 3.12+, Amazon Linux 2
After successful installation:
- Read the Configuration Guide for performance tuning
- Check Troubleshooting Guide for common usage issues
- Explore the examples directory for sample usage
- Run your first analysis:
datapilot all your-data.csv
If you encounter installation issues:
- Check this guide first
- Search existing GitHub issues
- Create a new issue with:
- Operating system and version
- Node.js and npm versions
- Complete error output
- Installation method attempted