EtherSim icon indicating copy to clipboard operation
EtherSim copied to clipboard

Having trouble installing via NPM

Open SilentCicero opened this issue 8 years ago • 9 comments

nick@nick:~/Github$ sudo npm install -g ethersim [sudo] password for nick: npm ERR! not a package /tmp/npm-16321-owQ1nK8p/github.com/iurimatias/node-jsonrpc2.git npm ERR! Error: ENOENT, open '/tmp/npm-16321-owQ1nK8p/github.com/iurimatias/node-jsonrpc2.git-unpack/package.json' npm ERR! If you need help, you may report this entire log, npm ERR! including the npm and node versions, at: npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 4.0.0-040000-generic npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "ethersim" npm ERR! cwd /home/nick/Github npm ERR! node -v v0.10.25 npm ERR! npm -v 1.4.21 npm ERR! path /tmp/npm-16321-owQ1nK8p/github.com/iurimatias/node-jsonrpc2.git-unpack/package.json npm ERR! code ENOENT npm ERR! errno 34 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /home/nick/Github/npm-debug.log npm ERR! not ok code 0

having trouble installing ethersim from NPM, any thoughts?

SilentCicero avatar Oct 22 '15 16:10 SilentCicero

what version of npm and node do you got? it seems to be some permissions issue e.g https://github.com/npm/npm/issues/3664

iurimatias avatar Oct 24 '15 16:10 iurimatias

I'll run an update, if I still get the same errors I'll run it by you.

SilentCicero avatar Oct 29 '15 18:10 SilentCicero

@SilentCicero just released a new version with a lots of npm issues fixed. please let me know if you are still having issues

iurimatias avatar Oct 29 '15 22:10 iurimatias

@iurimatias I figured out why Embark is failing to install on OS X.

EtherSim is using an outdated version of ethereumjs-vm. The latest version of ethereumjs-vm is 1.0.1, and it has the latest secp256k1 with the fix for OS X.

Unless there are other uncaught outdated dependencies, addressing this should fix:

  • https://github.com/ethereum/ethereumjs-tx/issues/6
  • https://github.com/iurimatias/embark-framework/issues/99

EDIT: Since this is different from what @SilentCicero describes, I've opened #2.

taoeffect avatar Nov 01 '15 03:11 taoeffect

We really need to update NPM with what's on develop. :)

tcoulter avatar Nov 19 '15 18:11 tcoulter

released 0.2.0 with the latest changes

iurimatias avatar Nov 20 '15 03:11 iurimatias

Tried to npm install -g EtherSim, still fails due to unfixed secp256k1 versions:

[email protected] install /usr/local/lib/node_modules/ethersim/node_modules/ethereumjs-vm/node_modules/secp256k1

[email protected] install /usr/local/lib/node_modules/ethersim/node_modules/ethereumjs-block/node_modules/secp256k1

taoeffect avatar Nov 20 '15 04:11 taoeffect

I'm getting a recent version of secp256k1 when installing from npm today. So this issue might be closed?

End result of npm install -g ethersim:

[email protected] /usr/lib/node_modules/ethersim
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

AronVanAmmers avatar Feb 10 '16 15:02 AronVanAmmers

Yep, I can confirm that this works now (and installs an insane amount of dependencies).

taoeffect avatar Feb 11 '16 00:02 taoeffect