EtherSim
EtherSim copied to clipboard
Having trouble installing via NPM
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?
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
I'll run an update, if I still get the same errors I'll run it by you.
@SilentCicero just released a new version with a lots of npm issues fixed. please let me know if you are still having issues
@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.
We really need to update NPM with what's on develop. :)
released 0.2.0 with the latest changes
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
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])
Yep, I can confirm that this works now (and installs an insane amount of dependencies).