- Organized 252 files across project - Root directory: 187 → 2 files (98.9% reduction) - Moved configuration guides to docs/04-configuration/ - Moved troubleshooting guides to docs/09-troubleshooting/ - Moved quick start guides to docs/01-getting-started/ - Moved reports to reports/ directory - Archived temporary files - Generated comprehensive reports and documentation - Created maintenance scripts and guides All files organized according to established standards.
68 lines
1.3 KiB
Markdown
68 lines
1.3 KiB
Markdown
# Node.js Required for Key Generation
|
|
|
|
The key generation script requires Node.js. Here are options to resolve this:
|
|
|
|
## Option 1: Install Node.js System-Wide
|
|
|
|
```bash
|
|
# Ubuntu/Debian
|
|
sudo apt update
|
|
sudo apt install nodejs npm
|
|
|
|
# Verify
|
|
node --version
|
|
```
|
|
|
|
## Option 2: Use nvm (Node Version Manager)
|
|
|
|
```bash
|
|
# Install nvm
|
|
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
|
|
|
|
# Reload shell
|
|
source ~/.bashrc
|
|
|
|
# Install Node.js
|
|
nvm install 20
|
|
nvm use 20
|
|
|
|
# Verify
|
|
node --version
|
|
```
|
|
|
|
## Option 3: Use Project's Node.js (if available)
|
|
|
|
Since this is a pnpm monorepo project, Node.js should be available:
|
|
|
|
```bash
|
|
cd /home/intlc/projects/proxmox/rpc-translator-138
|
|
|
|
# Install dependencies (if not done)
|
|
pnpm install
|
|
|
|
# Use pnpm's Node.js
|
|
pnpm exec node --version
|
|
|
|
# Generate keys using pnpm
|
|
pnpm exec node <<'EOF'
|
|
const crypto = require('crypto');
|
|
// ... (use the script logic)
|
|
EOF
|
|
```
|
|
|
|
## Option 4: Manual Key Generation
|
|
|
|
You can also manually create keystore files or use an online tool, then copy them to `/tmp/web3signer-keys/` and continue with the loading steps.
|
|
|
|
## Quick Install (Recommended)
|
|
|
|
```bash
|
|
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
|
|
sudo apt-get install -y nodejs
|
|
```
|
|
|
|
Then run:
|
|
```bash
|
|
./scripts/generate-and-load-keys.sh 3 TestWallet123!
|
|
```
|