-
Notifications
You must be signed in to change notification settings - Fork 68
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
node-pre-gyp http 404 https://github.com/gagern/libxmljs/releases/download/v1.0.0-mt/node-v72-win32-x64.tar.gz #103
Comments
There is no binary provided for your system so you will need to compile yourself. In order to do that, you will need a Python installation. |
This was working fine till last month, we had a server reboot and had to rebuild the application, that is when we had the error. |
This is the error I get after installing python
F:\Test programs\node js\node-test\node_modules\node1-libxmljsmt-myh>if not defined npm_config_node_gyp (node "C:\Users\john.j\AppData\Roaming\nvm\v12.20.1\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\john.j\AppData\Roaming\nvm\v12.20.1\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: |
Did you try following what the error message suggests?
This is not specific to libxslt. You should be able to find resources on node-gyp and windows if you're still stuck. |
The real app runs on node 12.20.1 on Linux platform with python installed .The rebuild done on 12-3-2023 caused application breakdown as the package 'libxslt' is not installing due to issue with dependent package ''node1-libxmljsmt'' installation. |
Iam also facing the same issue with the package installation. |
Please understand this issue was not identified on a windows machine. I first got this error in the jenkins server when I was rebuilding the application. So tried the installation of the package 'libxslt' in local machine for the version "0.9.0" and got the same error that we got in the jenkins server. Please try this in your machine if possible and let mw know if it works. Thanks |
|
Hi, thanks for the update. I tried the installation with versions you recommended but still did not work. Is there anything i am missing? F:\Test programs\node js\node-test>node --version F:\Test programs\node js\node-test>pip --version F:\Test programs\node js\node-test>npm i libxslt |
It seems that your Node.js version is 18.19.0, and the default NPM version for this release has been changed to 10.2.3. The node-gyp has also been upgraded from v9 to v10, which is different from Node.js 18.18.2. It is recommended that you downgrade to Node.js 18.18.2 and give it a try. So sorry for the confusion, you need C++ compilation environment on windows, and I'm using visualstudio2019-workload-vctools, I hope this information helps. |
0 info it worked if it ends with ok Same issue for me. |
tried with node v18.18.2 but it did not work npm i libxslt npm ERR! A complete log of this run can be found in: C:\Users\john.j.POLUS\AppData\Local\npm-cache_logs\2023-12-06T14_29_38_449Z-debug-0.log |
Error when installing [email protected]
please provide a fix
npm WARN deprecated [email protected]: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future
node-pre-gyp http GET https://github.com/gagern/libxmljs/releases/download/v1.0.0-mt/node-v72-win32-x64.tar.gz
node-pre-gyp http 404 https://github.com/gagern/libxmljs/releases/download/v1.0.0-mt/node-v72-win32-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://github.com/gagern/libxmljs/releases/download/v1.0.0-mt/node-v72-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v72 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://github.com/gagern/libxmljs/releases/download/v1.0.0-mt/node-v72-win32-x64.tar.gz
gyp ERR! find Python
gyp ERR! find Python Python is not set from command line or npm configuration
gyp ERR! find Python Python is not set from environment variable PYTHON
gyp ERR! find Python checking if "python" can be used
gyp ERR! find Python - "python" is not in PATH or produced an error
gyp ERR! find Python checking if "python2" can be used
gyp ERR! find Python - "python2" is not in PATH or produced an error
gyp ERR! find Python checking if "python3" can be used
gyp ERR! find Python - "python3" is not in PATH or produced an error
gyp ERR! find Python checking if the py launcher can be used to find Python 2
gyp ERR! find Python - "py.exe" is not in PATH or produced an error
gyp ERR! find Python checking if Python is C:\Python27\python.exe
gyp ERR! find Python - "C:\Python27\python.exe" could not be run
gyp ERR! find Python checking if Python is C:\Python37\python.exe
gyp ERR! find Python - "C:\Python37\python.exe" could not be run
gyp ERR! find Python
gyp ERR! find Python **********************************************************
gyp ERR! find Python You need to install the latest version of Python.
gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
gyp ERR! find Python you can try one of the following options:
gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe"
gyp ERR! find Python (accepted by both node-gyp and npm)
gyp ERR! find Python - Set the environment variable PYTHON
gyp ERR! find Python - Set the npm configuration variable python:
gyp ERR! find Python npm config set python "C:\Path\To\python.exe"
gyp ERR! find Python For more information consult the documentation at:
gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
gyp ERR! find Python **********************************************************
gyp ERR! find Python
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Python installation to use
gyp ERR! stack at PythonFinder.fail (C:\Users\john.j\AppData\Roaming\nvm\v12.20.1\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47)
gyp ERR! stack at PythonFinder.runChecks (C:\Users\john.j\AppData\Roaming\nvm\v12.20.1\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21)
gyp ERR! stack at PythonFinder. (C:\Users\john.j\AppData\Roaming\nvm\v12.20.1\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16)
gyp ERR! stack at PythonFinder.execFileCallback (C:\Users\john.j\AppData\Roaming\nvm\v12.20.1\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16)
gyp ERR! stack at exithandler (child_process.js:315:5)
gyp ERR! stack at ChildProcess.errorhandler (child_process.js:327:5)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)
gyp ERR! stack at onErrorNT (internal/child_process.js:470:16)
gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:84:21)
gyp ERR! System Windows_NT 10.0.19045
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\john.j\AppData\Roaming\nvm\v12.20.1\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--loglevel=http" "--module=F:\Test programs\node js\node-test\node_modules\node1-libxmljsmt\build\Release\xmljs.node" "--module_name=xmljs" "--module_path=F:\Test programs\node js\node-test\node_modules\node1-libxmljsmt\build\Release" "--napi_version=7" "--node_abi_napi=napi"
gyp ERR! cwd F:\Test programs\node js\node-test\node_modules\node1-libxmljsmt
gyp ERR! node -v v12.20.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\john.j\AppData\Roaming\nvm\v12.20.1\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --loglevel=http --module=F:\Test programs\node js\node-test\node_modules\node1-libxmljsmt\build\Release\xmljs.node --module_name=xmljs --module_path=F:\Test programs\node js\node-test\node_modules\node1-libxmljsmt\build\Release --napi_version=7 --node_abi_napi=napi' (1)
node-pre-gyp ERR! stack at ChildProcess. (F:\Test programs\node js\node-test\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:314:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1022:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
node-pre-gyp ERR! System Windows_NT 10.0.19045
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "F:\Test programs\node js\node-test\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build" "--loglevel" "http"
node-pre-gyp ERR! cwd F:\Test programs\node js\node-test\node_modules\node1-libxmljsmt
node-pre-gyp ERR! node -v v12.20.1
node-pre-gyp ERR! node-pre-gyp -v v0.9.1
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\john.j\AppData\Roaming\nvm\v12.20.1\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --loglevel=http
--module=F:\Test programs\node js\node-test\node_modules\node1-libxmljsmt\build\Release\xmljs.node --module_name=xmljs --module_path=F:\Test programs\node js\node-test\node_modules\node1-libxmljsmt\build\Release --napi_version=7 --node_abi_napi=napi' (1)
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-pre-gyp install --fallback-to-build --loglevel http
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\john.j.POLUS\AppData\Roaming\npm-cache_logs\2023-12-05T16_05_38_491Z-debug.log
The text was updated successfully, but these errors were encountered: