mnedelchev-vn / pancakeswap-sniper-bot

A free NodeJS sniper bot built to work with PancakeSwap: Router V2.
135 stars 76 forks source link

PM2 Error - Script not found #19

Closed tsilva89 closed 2 years ago

tsilva89 commented 2 years ago

An error is occurring when trying to run pm2 command. Can you help me?

[PM2] Spawning PM2 daemon with pm2_home=C:\Users\User\.pm2
[PM2] PM2 Successfully daemonized
[PM2] Starting C:\Users\User\Downloads\pancakeswap-sniper-bot-main\pancakeswap-sniper-bot.js in fork_mode (1 instance)
[PM2] Done.
[PM2][ERROR] Script not found: C:\Users\User\Downloads\pancakeswap-sniper-bot-main\tokenAddress=0xc9849e6fdb743d08faee3e34dd2d1bc69ea11a51
tsilva89 commented 2 years ago

Fix

I ran through the steps above and the error I was having on installing npm was fixed.

And then the pm2 command that wasn't working was fixed running as follows: pm2 start pancakeswap-sniper-bot.js -- -- tokenAddress=0x... buyingBnbAmount=1.05 senderPrivateKey=0x... createLogs=true gasPrice=25 transactionSlippage=30

Add -- -- between "pm2 start pancakeswap-sniper-bot.js" and "tokenAddress=0x..."