Installation
Install the Agentlify npm package and get started in seconds.
Requirements
- Node.js 16.0.0 or higher
Check your version with
node --version - npm, yarn, or pnpm package manager
- Active Agentlify account
Installation Methods
Using npm
Recommended for most projects
bash
npm install agentlifyUsing Yarn
bash
yarn add agentlifyUsing pnpm
bash
pnpm add agentlifyVerify Installation
Quick Test
Verify the package is installed correctly
javascript
import Agentlify from 'agentlify';
console.log(Agentlify);
// Should output: [class Agentlify]TypeScript Support
Built-in TypeScript Definitions
The Agentlify package includes TypeScript definitions out of the box. No additional @types package needed.
Troubleshooting
Common Issues
Node.js version error
If you see errors about Node.js version, upgrade to Node.js 16 or higher:
bash
nvm install 18 nvm use 18Permission errors
If you encounter EACCES or permission errors, use one of these solutions:
- Use npx instead of global installation
- Configure npm to use a different directory
- Use a Node version manager (nvm)
Network/proxy issues
If behind a proxy or firewall, configure npm:
bash
npm config set proxy http://proxy.company.com:8080 npm config set https-proxy http://proxy.company.com:8080