tendermint / js-abci

Javascript ABCI libraries
87 stars 41 forks source link

install #38

Open ubuntunewdev100 opened 5 years ago

ubuntunewdev100 commented 5 years ago

Im using: git clone https://github.com/tendermint/js-abci

Then: npm install abci

And i get an error message: npm ERR! Refusing to install package with name "abci" under a package npm ERR! also called "abci". Did you name your project the same npm ERR! as the dependency you're installing?

Could someone please help?

ubuntunewdev100 commented 5 years ago

Update, so i managed to install it, i dont know how. Now im trying to find the app.js but i cant. so this is what i get: node example/app.js internal/modules/cjs/loader.js:626 throw err; ^

Error: Cannot find module '/root/go/src/github.com/tendermint/js-abci/example/example/app.js'

andynog commented 5 years ago

I believe the install instructions are not right. In the step to cd into the cloned repo you should cd into the examples folder and then run the npm command

$ cd js-abci/example

$ npm install

and then run the example:

$ node counter.js

AndrewBoyarsky commented 4 years ago

@andynog I just used your instructions, build ran fine in js-abci/example dir (npm install), but node counter.js forever fails. To fix that need to go back to js-abci directory and execute npm install there, then go back to js-abci dir and execute node counter.js