EatTheBlocks Forum

Having errors when trying to run arbitrage.js

I am running this code


.on(‘data’, async block =>{

console.log('New block revieved. Block # ${block.nmber}');


.on(‘error’, error =>{



block.number is not blue in vs code.

and I get this
PS C:\Users\dtesh\eattheblocks\profitable-flashloans\9-setup-project> run run-arbitrage.js
run : The term ‘run’ is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the
path is correct and try again.
At line:1 char:1

  • run run-arbitrage.js
  •   + CategoryInfo          : ObjectNotFound: (run:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException

what am I doing wrong? Is something not setup correctly?

How do I fix this?

its not run its node + name of script.