0

So I installed Node.js on my Windows machine, opened up command prompt and typed

npm ethercalc

Lots of lines flew by and it seems ethercalc and its dependencies have been downloaded and installed. Now, how do I run ethercalc?

node ethercalc

returns a message saying it can't find file "ethercalc" in the current directory.

Note: I'm completely new to node.js. I was very surprised that the official website does not contain basic "Getting Started" info.

1

1 Answer 1

3

Since ethercalc is an executable, you should install it globally using :

npm install -g ethercalc

and then you can run it using:

ethercalc

Note, you will probably need to use sudo for the install if you are on linux.

Alternatively, their website also mentions installing locally and running the executable from the node_modules folder:

npm install ethercalc
./node_modules/ethercalc/bin/ethercalc
2
  • install -g is the way to go, but sudo is obviously not applicable on Windows. (Windows npm installs 'globally' into the user profile folder, so no elevated permissions are necessary.)
    – josh3736
    Commented Jul 11, 2013 at 19:07
  • @josh3736 Thanks for the tip. Updated.
    – go-oleg
    Commented Jul 11, 2013 at 19:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.