Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

10+ Hours Trying to Install Web3 #1979

Closed
ghost opened this issue Oct 2, 2018 · 1 comment
Closed

10+ Hours Trying to Install Web3 #1979

ghost opened this issue Oct 2, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 2, 2018

_Been troubleshooting this for ~10 hours now :(.

Anyone have an idea why I may be receiving this error?

I reset the environment variable to no available.

Any help would be much appreciated_

Running NPM Install

C:\Users\jeremy.nau\inbox>npm install

npm notice created a lockfile as package-lock.json. You should commit this file.

npm WARN [email protected] No description

npm WARN [email protected] No repository field.

added 90 packages from 505 contributors and audited 145 packages in 671.06s

found 0 vulnerabilities

Then tried to install web 3 to no avail :(

C:\Users\jeremy.nau\inbox>npm install --save [email protected]

npm WARN deprecated [email protected]: Use mz or fs-extra^3.0 with Promise Support

npm WARN deprecated [email protected]: ⚠️ WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar

[email protected] preinstall C:\Users\jeremy.nau\inbox\node_modules\scrypt

node node-scrypt-preinstall.js

[email protected] install C:\Users\jeremy.nau\inbox\node_modules\scrypt

node-gyp rebuild

C:\Users\jeremy.nau\inbox\node_modules\scrypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )

gyp ERR! configure error

gyp ERR! stack Error: Can't find Python executable "python27\python", you can set the PYTHON env variable.

gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:484:19)

gyp ERR! stack at PythonFinder. (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:509:16)

gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29

gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)

gyp ERR! System Windows_NT 10.0.16299

gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"

gyp ERR! cwd C:\Users\jeremy.nau\inbox\node_modules\scrypt

gyp ERR! node -v v8.12.0

gyp ERR! node-gyp -v v3.8.0

gyp ERR! not ok

npm WARN [email protected] No description

npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! [email protected] install: node-gyp rebuild

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the [email protected] install script.

npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

npm ERR! C:\Users\jeremy.nau\AppData\Roaming\npm-cache_logs\2018-10-01T23_07_15_297Z-debug.log

And here are my file paths and variable sets

env var
file path

_Any help would be much appreciated.

Thanks!

JN

@Jason-Soo
Copy link

You can try this "Run as admin in your Powershell or Node.js CMD

npm install --global --production windows-build-tools
after the installation is complete

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

If you still can't try to clean your package files and everything delete away the word web3 from the package and try installing it again or try the web3 0.2 version it works fine normally for a lot of people with 1.x.x error, but 1.x and 0.2 has different documentation

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

No branches or pull requests

2 participants