Installation
Node Package Manager (npm) is required to start using this API. You can install npm here. Installing nodejs will automatically install npm.
To confirm you have successfully installed npm, go to your terminal and run npm -v
. This should return a version number, for example, 6.14.15
.
First, let's initialise npm for the folder by running npm init
. After successfully initialising npm, run this command in your terminal to install the AVN API:
npm install avn-api
This will download the avn-api command and add it to your npm packages in your chosen directory.
tip
Your package.json
file should have avn-api
in it, similar to this:
package.json
"dependencies": {
"avn-api": "^0.6.0"
}