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

npm install --save web3 not working

Open akshaymohan29 opened this issue 5 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

PS C:\Users\AKS> npm install --save web3 npm WARN deprecated [email protected]: This module has been superseded by the multiformats module npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated [email protected]: This module has been superseded by the multiformats module npm WARN deprecated [email protected]: This module has been superseded by the multiformats module npm WARN deprecated [email protected]: This module has been superseded by the multiformats module npm WARN cleanup Failed to remove some directories [ npm WARN cleanup [ npm WARN cleanup 'C:\Users\AKS\node_modules', npm WARN cleanup [Error: EPERM: operation not permitted, unlink 'C:\Users\AKS\node_modules\is-number-object\LICENSE'] { npm WARN cleanup errno: -4048, npm WARN cleanup code: 'EPERM', npm WARN cleanup syscall: 'unlink', npm WARN cleanup path: 'C:\Users\AKS\node_modules\is-number-object\LICENSE' npm WARN cleanup } npm WARN cleanup ], npm WARN cleanup [ npm WARN cleanup 'C:\Users\AKS\node_modules\cids', npm WARN cleanup [Error: EPERM: operation not permitted, unlink 'C:\Users\AKS\node_modules\cids\dist\index.js'] { npm WARN cleanup errno: -4048, npm WARN cleanup code: 'EPERM', npm WARN cleanup syscall: 'unlink', npm WARN cleanup path: 'C:\Users\AKS\node_modules\cids\dist\index.js' npm WARN cleanup } npm WARN cleanup ], npm WARN cleanup [ npm WARN cleanup 'C:\Users\AKS\node_modules\ethjs-unit', npm WARN cleanup [Error: EPERM: operation not permitted, unlink 'C:\Users\AKS\node_modules\ethjs-unit\dist\ethjs-unit.js.map'] { npm WARN cleanup errno: -4048, npm WARN cleanup code: 'EPERM', npm WARN cleanup syscall: 'unlink', npm WARN cleanup path: 'C:\Users\AKS\node_modules\ethjs-unit\dist\ethjs-unit.js.map' npm WARN cleanup } npm WARN cleanup ] npm WARN cleanup ] npm notice npm notice New patch version of npm available! 7.24.0 -> 7.24.1 npm notice Changelog: https://github.com/npm/cli/releases/tag/v7.24.1 npm notice Run npm install -g [email protected] to update! npm notice npm ERR! code ERR_SOCKET_TIMEOUT npm ERR! network Socket timeout npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config'

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\AKS\AppData\Local\npm-cache_logs\2021-09-29T13_18_18_504Z-debug.log PS C:\Users\AKS> npm install -g [email protected]^C PS C:\Users\AKS> npm install -g [email protected]

added 4 packages, and audited 37 packages in 16s

found 0 vulnerabilities

Expected Behavior

install web3

Steps to Reproduce

npm install --save web3

Web3.js Version

latest

Environment

  • Operating System: windows10
  • Browser: brave Version 1.30.86 Chromium: 94.0.4606.61 (Official Build) (64-bit)
  • Node.js Version: v16.10.0
  • NPM Version: 7.24.0

Anything Else?

No response

akshaymohan29 avatar Sep 29 '21 13:09 akshaymohan29

We just published 1.6.0 release and I tried tried it on Mac and Windows 10 and it works fine. From the error messages it seems like some permission issue with your machine. Please try out with latest version or would be nice to also try one different machine.

I am closing this issue for now, if you can reproduce this issue on different machine as well, feel free to reopen with more insights.

nazarhussain avatar Sep 30 '21 21:09 nazarhussain