Use "/" to Search
# Installation
Developing on the Nibiru is made easy with NibiJS. This TypeScript library simplifies decentralized application (dApp) development, providing a user-friendly interface that abstracts away blockchain complexities. With NibiJS, developers can focus on innovation and building cutting-edge dApps.
To install @nibiruchain/nibijs, follow these steps. This guide assumes you have a basic understanding of Node.js and npm (Node Package Manager).
# Requirements
- Node.js: Ensure you have Node.js installed. You can download and install it from Node.js official website (opens new window).
- npm: npm is included with Node.js, so installing Node.js will also install npm.
# Steps to Install @nibiruchain/nibijs
- Initialize a New Node.js Project [OPTIONAL]: Open your terminal or command prompt and navigate to your project directory. Then, run:
This will create a package.json file in your project directory.
- Install
@nibiruchain/nibijs
: Run the following command in your terminal:
- Verify Installation:: Ensure @nibiruchain/nibijs is listed under dependencies in your package.json file:
This installation process can be used in both node applications and frontend applications, depending on your specific use case.
# Additional Tips
- Updates: Keep your package up-to-date by running the appropriate update command for your package manager:
- npm:
npm update @nibiruchain/nibijs
- yarn:
yarn upgrade @nibiruchain/nibijs
- bun:
bun upgrade @nibiruchain/nibijs
- npm:
# Troubleshooting
- Common Issues:
- Ensure you have the correct Node.js version as specified in the documentation.
- If you encounter permission issues on Unix-based systems, consider using sudo or configure npm to use a different directory for global packages.
- For Windows, running the command prompt as an administrator may resolve permission issues.