web3.js icon indicating copy to clipboard operation
web3.js copied to clipboard

Windows error install web3

Open armanfeyzi opened this issue 8 years ago • 3 comments

windows 7 node: v6.11.0 npm: 3.10.10

when i try to install web3 i get this error:

npm i ethereum/web3.js --save

npm WARN addRemoteGit Error: Command failed: git -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit     at ChildProcess.exithandler (child_process.js:204:12)
npm WARN addRemoteGit     at emitTwo (events.js:106:13)
npm WARN addRemoteGit     at ChildProcess.emit (events.js:191:7)
npm WARN addRemoteGit     at maybeClose (internal/child_process.js:891:16)
npm WARN addRemoteGit     at Socket.<anonymous> (internal/child_process.js:342:11)
npm WARN addRemoteGit     at emitOne (events.js:96:13)
npm WARN addRemoteGit     at Socket.emit (events.js:188:7)
npm WARN addRemoteGit     at Pipe._handle.close [as _onclose] (net.js:497:12)
npm WARN addRemoteGit  ethereum/web3.js resetting remote C:\Users\afeyzi\AppData\Roaming\npm-cache\_git-remotes\git-github-com-ethereum-web3-js-git-6339a8c5 because of error: { Error: Command failed: git -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit     at ChildProcess.exithandler (child_process.js:204:12)
npm WARN addRemoteGit     at emitTwo (events.js:106:13)
npm WARN addRemoteGit     at ChildProcess.emit (events.js:191:7)
npm WARN addRemoteGit     at maybeClose (internal/child_process.js:891:16)
npm WARN addRemoteGit     at Socket.<anonymous> (internal/child_process.js:342:11)
npm WARN addRemoteGit     at emitOne (events.js:96:13)
npm WARN addRemoteGit     at Socket.emit (events.js:188:7)
npm WARN addRemoteGit     at Pipe._handle.close [as _onclose] (net.js:497:12)
npm WARN addRemoteGit   killed: false,
npm WARN addRemoteGit   code: 1,
npm WARN addRemoteGit   signal: null,
npm WARN addRemoteGit   cmd: 'git -c core.longpaths=true config --get remote.origin.url' }

armanfeyzi avatar Feb 28 '18 08:02 armanfeyzi

I hava the same question and I hava no idea, Who can mail me the web3.js module , 3q,I really want the web3.js which the version is greater than 1.0. email [email protected]

theWangs avatar Feb 28 '18 14:02 theWangs

@ArmanFeyzi please try npm install web3 --save instead

iurimatias avatar Apr 13 '18 19:04 iurimatias

Try "Run as admin in your Powershell or Node.js CMD

  1. npm install --global --production windows-build-tools

after the installation is complete

  1. npm install [email protected] (or any beta version you like up to 36 if i'm not mistaken)

Jason-Soo avatar Sep 23 '18 10:09 Jason-Soo