Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

npm install 0x.js fails on clean node install #310

Closed
tomhschmidt opened this issue Jan 9, 2018 · 3 comments
Closed

npm install 0x.js fails on clean node install #310

tomhschmidt opened this issue Jan 9, 2018 · 3 comments
Assignees
Labels

Comments

@tomhschmidt
Copy link
Contributor

tomhschmidt commented Jan 9, 2018

Just did a node install from their pkg download on a brand new machine. Running npm install fails, but
a) yarn works fine and
b) npm installing other packages works fine

node -v
v9.3.0

npm -v
5.6.0
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git clone -q https://github.com/frozeman/bignumber.js-nolookahead.git /Users/tomhschmidt/.npm/_cacache/tmp/git-clone-58bc61de
npm ERR! /Users/tomhschmidt/.npm/_cacache/tmp/git-clone-58bc61de/.git: Permission denied
npm ERR! 

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/tomhschmidt/.npm/_logs/2018-01-09T18_39_14_375Z-debug.log
macbook-pro:pipeline tomhschmidt$ sudo npm install --save 0x.js
Password:
npm ERR! code 1
npm ERR! Command failed: /usr/bin/git clone -q https://github.com/frozeman/bignumber.js-nolookahead.git /Users/tomhschmidt/.npm/_cacache/tmp/git-clone-42a0a849
npm ERR! /Users/tomhschmidt/.npm/_cacache/tmp/git-clone-42a0a849/.git: Permission denied
npm ERR! 

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/tomhschmidt/.npm/_logs/2018-01-09T19_30_18_792Z-debug.log
@citizens
Copy link

@tomhschmidt This is likely due to a web3.js dependency that is hosted on github rather than npm. Do you have git installed on you new machine? This issue suggests that may be the problem.

Otherwise there is an open discussion in the web3.js repo. Apparently this dependency will go away in web3.js 1.0, but I'm unsure of a timeline.

@tomhschmidt
Copy link
Contributor Author

tomhschmidt commented Jan 10, 2018

@citizens Yup, have git installed

git --version
git version 2.14.3 (Apple Git-98)

I just tried installing web3 with npm and got the same error, so you're right. Kind of a bummer :/ -- weird that it works with yarn but not with npm. Is there a yarn pkg for this bignumber git repo?

@fabioberger
Copy link
Contributor

This is annoying. We have been waiting to upgrade to Web3 1.0 until it gets out of Beta but we might have to do so sooner :/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants