Anyone Docs
  • 🔷The Documentation For Anyone
    • About
    • FAQ
  • 🔷Relay Setup
    • Get Started
    • Relay Operator Standards
    • Installation and Usage
      • Virtualization on Windows
      • Virtualization on macOS
      • Install Ubuntu Server 24.04
      • Server management with SSH in Windows and macOS
      • Install Anon on Linux
      • Firewall and Network Configurations
        • Router Port Forwarding
        • Install and Configure Firewall
      • Troubleshooting Common Issues
        • Diagnosing CGNAT and Public IPv4
        • Confirm ORPort Reachability
        • Configure IPv4 and IPv6
      • Advanced Configuration
        • Install Anon using the apt repository
          • Binary Verification
        • Install Anon in Docker
        • Install Anyone Exit Relay
          • Exit Relay Guidelines
        • DoS mitigation parameters
        • Update Anon and accept terms and conditions
        • Configure SOCKS5 Proxy for Anyone
  • 🔷Hardware Setup
    • Setup Guide
    • Router Mode Setup
    • Description and Specifications
    • Relay Control Panel Pages
      • Home
      • Network Settings
      • Relay Settings
      • Relay Family
      • Proxy Settings BETA
      • Change Password
      • Logs
      • Update
    • Hardware Updates
      • System Update (USB)
      • System Update (WebUI)
      • Anon Update (WebUI)
    • Troubleshooting and additional configuration
      • Router Port Forwarding
      • Diagnosing CGNAT and Public IPv4
  • 🔷Security and Privacy
    • VPS Hardening
  • 🔷Rewards Dashboard
    • Registering to the Rewards Program
    • Accessing the Rewards Dashboard
    • Using the Rewards Dashboard
    • Rewards Status
  • 🔷Anyone SDK
    • NPM SDK
      • Install NPM Package
      • Run as Library
        • Anon
        • AnonSocksClient
        • AnonControlClient
      • Run from CLI
      • Tutorials
        • Hello Anon World I
        • Hello Anon World II
        • Circuit Control I
        • Circuit Control II
    • Native SDK
      • Anyone Client Releases
      • MAN - Anon Manual
      • Tutorials
        • Anyone Services I
        • Anyone Services II
    • iOS SDK [Beta]
      • Manual Install - CocoaPods
  • 🔷Connect to Anyone
    • Connecting to Linux
      • [Beta] One-Click Linux Setup
    • Connecting to macOS
      • macOS with NPM
      • [Beta] One-Click macOS Setup
    • Connecting to Windows
      • [Beta] One-Click Windows Setup
    • Individual Applications with Anyone
    • Connect Through Hardware
  • 🔷Tokenomics
    • Introduction
    • Token Distribution
      • Token Outflow
      • Other Tokens
      • Multichain
    • Relay Rewards
      • Lock Requirement
      • Lock Adjustments
      • Reward Multipliers
    • Additional Roles
      • Authorities and Staking
      • Governance Voting
    • Premium Circuits
      • Premium Circuits
      • Premium Circuits: Metrics
    • Summary
      • Value Accrual Summary
      • Rewards Case Study
    • Appendix
      • M Derivation
      • Risk Equation Derivation
  • 🔷Resources
    • Community and Customer Support
    • Links
    • Token
    • Whitepaper
    • Roadmap
    • API
      • REST
      • [Future] GraphQL
Powered by GitBook
On this page
  1. Anyone SDK
  2. NPM SDK

Install NPM Package

Have npm and Node.js installed already? Skip to step 6. If not, read below

  1. Update your repo

sudo apt-get update --yes
  1. Install npm

sudo apt-get install npm --yes
  1. Install Node Version Manager

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
  1. Update the terminal

source ~/.bashrc
  1. Install Node.js version 20

nvm install 20
  1. Use Node.js version 20

nvm use 20
  1. Install the anyone-client

npm install @anyone-protocol/anyone-client
  1. If you wish to use it personally, start the anyone-client.

npx anyone-client

Resource: https://www.npmjs.com/package/@anyone-protocol/anyone-client

Have npm and Node.js installed already? Skip to step 4. If not, read below NPM installation replicates the installation guide here. You can follow this guide on the Terminal app on your Mac.

  1. Install nvm by

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
  1. Use nvm to install Node.js 20

nvm install 20
  1. Verify that you have installed Node.js and npm by ensuring you get a version code for each of these commands

node -v
npm -v
  1. Install the anyone-client

npm install @anyone-protocol/anyone-client
  1. If you wish to use it personally, start the anyone-client.

npx anyone-client

Resource: https://www.npmjs.com/package/@anyone-protocol/anyone-client

Have npm and Node.js installed already? Skip to step 4. If not, read below NPM installation replicates the installation guide here. You can follow this guide on the Command Prompt app on your Desktop.

  1. Install fnm (fast node manager) by

winget install Schniz.fnm
  1. Use fnm to install Node.js 20

fnm env --use-on-cd | Out-String | Invoke-Expression
fnm use --install-if-missing 20
  1. Verify that you have installed Node.js and npm by ensuring you get a version code for each of these commands

node -v
npm -v
  1. Install the anyone-client

npm install @anyone-protocol/anyone-client
  1. If you wish to use it personally, start the anyone-client.

npx anyone-client

Resource: https://www.npmjs.com/package/@anyone-protocol/anyone-client

PreviousNPM SDKNextRun as Library

Last updated 7 months ago

🔷