dante4rt / rivalz-ai-bot

A bot for interacting with the Rivalz Fragmentz claimer using Ethereum wallets.
https://t.me/HappyCuanAirdrop
MIT License
24 stars 21 forks source link

Error when I run npm start #1

Open iamgodsondaniel5 opened 3 months ago

iamgodsondaniel5 commented 3 months ago

Screenshot_20240723_152737_Termius.jpg

mesamirh commented 3 months ago

Upgrade your nodejs to v16 or higher.

Here is the steps

For Ubuntu

Installing nvm

sudo apt update

sudo apt install build-essential libssl-dev curl -y

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash

echo 'export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"' >> ~/.bashrc echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc

source ~/.bashrc

Upgrading Nodejs using nvm

nvm install 16 // you can install latest one using nvm install node and use nvm alias default node to use nodejs new version by deafult

nvm use 16

iamgodsondaniel5 commented 3 months ago

Still getting same error even after upgrading to nodejs to v16 with the guide you dropped

mesamirh commented 3 months ago

Create a new file named privateKeys.json. In the privateKeys.json store your wallet private key like this

[ "your_wallet_private_key_here" ]

Note: use "[ ]" this bracket not this { } or this ( ).