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

installation error #162

Open
talhaanees opened this issue Jun 1, 2017 · 5 comments
Open

installation error #162

talhaanees opened this issue Jun 1, 2017 · 5 comments

Comments

@talhaanees
Copy link

node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://hummus.s3-us-west-2.amazonaws.com/hummus/v1.0.77/node-v48-win32-x64.ta
r.gz
node-pre-gyp ERR! Pre-built binaries not found for hummus@1.0.77 and node@6.10.3 (node-v48 ABI) (falling back to source
compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at Object.failNoPython (G:\assignments\Junior Project\pdfreader\node_modules\npm\node_modules\node-gy
p\lib\configure.js:483:19)
gyp ERR! stack at Object. (G:\assignments\Junior Project\pdfreader\node_modules\npm\node_modules\node-gyp
\lib\configure.js:508:16)
gyp ERR! stack at G:\assignments\Junior Project\pdfreader\node_modules\npm\node_modules\graceful-fs\polyfills.js:284
:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "D:\Applications\Node.js\node.exe" "G:\assignments\Junior Project\pdfreader\node_modules\npm\n
ode_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=G:\assignments\Junior Project\pd
freader\node_modules\hummus\binding\hummus.node" "--module_name=hummus" "--module_path=G:\assignments\Junior Proje
ct\pdfreader\node_modules\hummus\binding"
gyp ERR! cwd G:\assignments\Junior Project\pdfreader\node_modules\hummus
gyp ERR! node -v v6.10.3
gyp ERR! node-gyp -v v3.6.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'D:\Applications\Node.js\node.exe G:\assignments\Junior Project\pdfread
er\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=G:\assignments\Junior P
roject\pdfreader\node_modules\hummus\binding\hummus.node --module_name=hummus --module_path=G:\assignments\Junior Projec
t\pdfreader\node_modules\hummus\binding' (1)
node-pre-gyp ERR! stack at ChildProcess. (G:\assignments\Junior Project\pdfreader\node_modules\hummus\nod
e_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:886:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Windows_NT 10.0.14393
node-pre-gyp ERR! command "D:\Applications\Node.js\node.exe" "G:\assignments\Junior Project\pdfreader\node_module
s\hummus\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd G:\assignments\Junior Project\pdfreader\node_modules\hummus
node-pre-gyp ERR! node -v v6.10.3
node-pre-gyp ERR! node-pre-gyp -v v0.6.34
node-pre-gyp ERR! not ok
Failed to execute 'D:\Applications\Node.js\node.exe G:\assignments\Junior Project\pdfreader\node_modules\npm\node_module
s\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=G:\assignments\Junior Project\pdfreader\node_modules\h
ummus\binding\hummus.node --module_name=hummus --module_path=G:\assignments\Junior Project\pdfreader\node_modules\hummus
\binding' (1)
npm WARN pdfreader@1.0.0 No description
npm WARN pdfreader@1.0.0 No repository field.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "D:\Applications\Node.js\node.exe" "D:\Applications\Node.js\node_modules\npm\bin\npm-cli.js" "ins
tall" "hummus"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! hummus@1.0.77 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hummus@1.0.77 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the hummus package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs hummus
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls hummus
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! G:\assignments\Junior Project\pdfreader\npm-debug.log

@pmcruz8
Copy link

pmcruz8 commented Jun 1, 2017

I'm having the same problem as @talhaanees

@galkahana
Copy link
Owner

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

per this - https://github.com/nodejs/node-gyp

run from command line - npm install --global --production windows-build-tools
and then you should probably be fine

@talhaanees
Copy link
Author

Tried it, python is there now and all windows-build-tools as well.. But still an error.

node-pre-gyp ERR! Tried to download(404): https://hummus.s3-us-west-2.amazonaws.com/hummus/v1.0.77/node-v48-win32-x64.ta
r.gz
node-pre-gyp ERR! Pre-built binaries not found for hummus@1.0.77 and node@6.10.3 (node-v48 ABI) (falling back to source
compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "/path/to/executable/python2.7", you can set the PYTHON env variable.
gyp ERR! stack at Object.failNoPython (G:\assignments\Junior Project\pdfreader\node_modules\npm\node_modules\node-gy
p\lib\configure.js:483:19)
gyp ERR! stack at Object. (G:\assignments\Junior Project\pdfreader\node_modules\npm\node_modules\node-gyp
\lib\configure.js:508:16)
gyp ERR! stack at G:\assignments\Junior Project\pdfreader\node_modules\npm\node_modules\graceful-fs\polyfills.js:284
:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "D:\Applications\Node.js\node.exe" "G:\assignments\Junior Project\pdfreader\node_modules\npm\n
ode_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=G:\assignments\Junior Project\pd
freader\node_modules\hummus\binding\hummus.node" "--module_name=hummus" "--module_path=G:\assignments\Junior Proje
ct\pdfreader\node_modules\hummus\binding" "--python=/path/to/executable/python2.7" "--msvs_version=2015"
gyp ERR! cwd G:\assignments\Junior Project\pdfreader\node_modules\hummus
gyp ERR! node -v v6.10.3
gyp ERR! node-gyp -v v3.6.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'D:\Applications\Node.js\node.exe G:\assignments\Junior Project\pdfread
er\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=G:\assignments\Junior P
roject\pdfreader\node_modules\hummus\binding\hummus.node --module_name=hummus --module_path=G:\assignments\Junior Projec
t\pdfreader\node_modules\hummus\binding --python=/path/to/executable/python2.7 --msvs_version=2015' (1)
node-pre-gyp ERR! stack at ChildProcess. (G:\assignments\Junior Project\pdfreader\node_modules\hummus\nod
e_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:886:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Windows_NT 10.0.14393
node-pre-gyp ERR! command "D:\Applications\Node.js\node.exe" "G:\assignments\Junior Project\pdfreader\node_module
s\hummus\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd G:\assignments\Junior Project\pdfreader\node_modules\hummus
node-pre-gyp ERR! node -v v6.10.3
node-pre-gyp ERR! node-pre-gyp -v v0.6.34
node-pre-gyp ERR! not ok
Failed to execute 'D:\Applications\Node.js\node.exe G:\assignments\Junior Project\pdfreader\node_modules\npm\node_module
s\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=G:\assignments\Junior Project\pdfreader\node_modules\h
ummus\binding\hummus.node --module_name=hummus --module_path=G:\assignments\Junior Project\pdfreader\node_modules\hummus
\binding --python=/path/to/executable/python2.7 --msvs_version=2015' (1)
npm WARN pdfreader@1.0.0 No description
npm WARN pdfreader@1.0.0 No repository field.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "D:\Applications\Node.js\node.exe" "D:\Applications\Node.js\node_modules\npm\bin\npm-cli.js" "ins
tall" "hummus"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! hummus@1.0.77 install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hummus@1.0.77 install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the hummus package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs hummus
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls hummus
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! G:\assignments\Junior Project\pdfreader\npm-debug.log

@galkahana
Copy link
Owner

Well id hate to state the obvious - but theres a statement here saying that python cant be found.

@cdtinney
Copy link

cdtinney commented Jan 24, 2018

@talhaanees you need to add the path to python.exe to your Windows PATH variable.

In the docs for windows-build-tools, there's an additional argument for this, --add-python-to-path, that defaults to false.

Full command should be:

npm install --global --production --add-python-to-path windows-build-tools

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

4 participants