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

node-pre-gyp http 404 https://github.com/gagern/libxmljs/releases/download/v1.0.0-mt/node-v72-win32-x64.tar.gz #103

Open
JJWins opened this issue Dec 5, 2023 · 12 comments

Comments

@JJWins
Copy link

JJWins commented Dec 5, 2023

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

[email protected] install F:\Test programs\node js\node-test\node_modules\node1-libxmljsmt
node-pre-gyp install --fallback-to-build --loglevel http

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

@lognaturel
Copy link
Collaborator

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.

@JJWins
Copy link
Author

JJWins commented Dec 5, 2023

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.

@JJWins
Copy link
Author

JJWins commented Dec 5, 2023

This is the error I get after installing python

[email protected] install F:\Test programs\node js\node-test\node_modules\node1-libxmljsmt-myh
node-gyp rebuild

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 )
gyp ERR! find VS
gyp ERR! find VS msvs_version not set from command line or npm config
gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer
gyp ERR! find VS looking for Visual Studio 2015
gyp ERR! find VS - not found
gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
gyp ERR! find VS
gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************
gyp ERR! find VS
gyp ERR! configure error
gyp ERR! stack Error: Could not find any Visual Studio installation to use
gyp ERR! stack at VisualStudioFinder.fail (C:\Users\john.j\AppData\Roaming\nvm\v12.20.1\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
gyp ERR! stack at C:\Users\john.j\AppData\Roaming\nvm\v12.20.1\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:74:16
gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\john.j\AppData\Roaming\nvm\v12.20.1\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
gyp ERR! stack at C:\Users\john.j\AppData\Roaming\nvm\v12.20.1\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:70:14
gyp ERR! stack at C:\Users\john.j\AppData\Roaming\nvm\v12.20.1\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:372:16
gyp ERR! stack at C:\Users\john.j\AppData\Roaming\nvm\v12.20.1\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
gyp ERR! stack at C:\Users\john.j\AppData\Roaming\nvm\v12.20.1\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
gyp ERR! stack at ChildProcess.exithandler (child_process.js:315:5)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at maybeClose (internal/child_process.js:1022:16)
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" "rebuild"
gyp ERR! cwd F:\Test programs\node js\node-test\node_modules\node1-libxmljsmt-myh
gyp ERR! node -v v12.20.1
gyp ERR! node-gyp -v v5.1.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\john.j.POLUS\AppData\Roaming\npm-cache_logs\2023-12-05T16_45_39_648Z-debug.log

@lognaturel
Copy link
Collaborator

Did you try following what the error message suggests?

gyp ERR! find VS **************************************************************
gyp ERR! find VS You need to install the latest version of Visual Studio
gyp ERR! find VS including the "Desktop development with C++" workload.
gyp ERR! find VS For more information consult the documentation at:
gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
gyp ERR! find VS **************************************************************

This is not specific to libxslt. You should be able to find resources on node-gyp and windows if you're still stuck.

@amaljithbroad
Copy link

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.
You can also verify it trying installation for the package 'libxslt' now itself.

@amaljithbroad
Copy link

Iam also facing the same issue with the package installation.

@JJWins
Copy link
Author

JJWins commented Dec 6, 2023

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

@yon11101
Copy link

yon11101 commented Dec 6, 2023

[email protected] works as expected with Python3.11.6+Node.js18.18.2+NPM9.8 in my workspace on both Linux(RHEL8 and RHEL9) and Windows, may be you can have a try

@JJWins
Copy link
Author

JJWins commented Dec 6, 2023

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
v18.19.0

F:\Test programs\node js\node-test>pip --version
pip 23.2.1 from C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2032.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip (python 3.11)

F:\Test programs\node js\node-test>npm i libxslt
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup 'F:\Test programs\node js\node-test\node_modules\node1-libxmljsmt-myh',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'F:\Test programs\node js\node-test\node_modules\node1-libxmljsmt-myh\test\fixtures\errors'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'F:\Test programs\node js\node-test\node_modules\node1-libxmljsmt-myh\test\fixtures\errors'
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path F:\Test programs\node js\node-test\node_modules\node1-libxmljsmt-myh
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info find Python using Python version 3.11.7 found at "C:\Users\john.j.POLUS\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\python.exe"
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config
npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
npm ERR! gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
npm ERR! gyp ERR! find VS looking for Visual Studio 2015
npm ERR! gyp ERR! find VS - not found
npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use
npm ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Users\john.j\AppData\Roaming\nvm\v18.19.0\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:113:11)
npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio (C:\Users\john.j\AppData\Roaming\nvm\v18.19.0\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:69:17)
npm ERR! gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
npm ERR! gyp ERR! stack at async createBuildDir (C:\Users\john.j\AppData\Roaming\nvm\v18.19.0\node_modules\npm\node_modules\node-gyp\lib\configure.js:69:26)
npm ERR! gyp ERR! stack at async run (C:\Users\john.j\AppData\Roaming\nvm\v18.19.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js:81:18)
npm ERR! gyp ERR! System Windows_NT 10.0.19045
npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\john.j\AppData\Roaming\nvm\v18.19.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd F:\Test programs\node js\node-test\node_modules\node1-libxmljsmt-myh
npm ERR! gyp ERR! node -v v18.19.0
npm ERR! gyp ERR! node-gyp -v v10.0.1
npm ERR! gyp ERR! not ok

@yon11101
Copy link

yon11101 commented Dec 6, 2023

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.

@maheshpolus
Copy link

0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/Users/maheshsreenath/.nvm/versions/node/v12.20.1/bin/node',
1 verbose cli '/Users/maheshsreenath/.nvm/versions/node/v12.20.1/bin/npm',
1 verbose cli 'i',
1 verbose cli 'libxslt'
1 verbose cli ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session ebf3ad000c98937a
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 304 https://registry.npmjs.org/libxslt 1326ms (from cache)
8 silly pacote tag manifest for libxslt@latest fetched in 1337ms
9 timing stage:loadCurrentTree Completed in 1389ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 0ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 1ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule [email protected] checking installable status
17 http fetch GET 304 https://registry.npmjs.org/node1-libxmljsmt-myh 1234ms (from cache)
18 silly pacote version manifest for [email protected] fetched in 1236ms
19 silly resolveWithNewModule [email protected] checking installable status
20 http fetch GET 304 https://registry.npmjs.org/nan 1883ms (from cache)
21 silly pacote range manifest for nan@2.15.0 fetched in 1892ms
22 silly resolveWithNewModule [email protected] checking installable status
23 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 3139ms
24 timing stage:loadIdealTree Completed in 3144ms
25 silly currentTree [email protected]
25 silly currentTree ├── [email protected]
25 silly currentTree ├── [email protected]
25 silly currentTree └── [email protected]
26 silly idealTree [email protected]
26 silly idealTree ├── [email protected]
26 silly idealTree ├── [email protected]
26 silly idealTree ├── [email protected]
26 silly idealTree ├── [email protected]
26 silly idealTree └─┬ [email protected]
26 silly idealTree └── [email protected]
27 silly install generateActionsToTake
28 timing stage:generateActionsToTake Completed in 4ms
29 silly diffTrees action count 3
30 silly diffTrees add [email protected]
31 silly diffTrees add [email protected]
32 silly diffTrees add [email protected]
33 silly decomposeActions action count 24
34 silly decomposeActions fetch [email protected]
35 silly decomposeActions extract [email protected]
36 silly decomposeActions preinstall [email protected]
37 silly decomposeActions build [email protected]
38 silly decomposeActions install [email protected]
39 silly decomposeActions postinstall [email protected]
40 silly decomposeActions finalize [email protected]
41 silly decomposeActions refresh-package-json [email protected]
42 silly decomposeActions fetch [email protected]
43 silly decomposeActions extract [email protected]
44 silly decomposeActions preinstall [email protected]
45 silly decomposeActions build [email protected]
46 silly decomposeActions install [email protected]
47 silly decomposeActions postinstall [email protected]
48 silly decomposeActions finalize [email protected]
49 silly decomposeActions refresh-package-json [email protected]
50 silly decomposeActions fetch [email protected]
51 silly decomposeActions extract [email protected]
52 silly decomposeActions preinstall [email protected]
53 silly decomposeActions build [email protected]
54 silly decomposeActions install [email protected]
55 silly decomposeActions postinstall [email protected]
56 silly decomposeActions finalize [email protected]
57 silly decomposeActions refresh-package-json [email protected]
58 silly install executeActions
59 silly doSerial global-install 24
60 verbose correctMkdir /Users/maheshsreenath/.npm/_locks correctMkdir not in flight; initializing
61 verbose lock using /Users/maheshsreenath/.npm/_locks/staging-c210e410c6fd9bee.lock for /Users/maheshsreenath/Desktop/test-bit/node_modules/.staging
62 silly doParallel extract 3
63 silly extract [email protected]
64 silly extract [email protected]
65 silly extract [email protected]
66 silly tarball trying nan@2.15.0 by hash: sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==
67 silly tarball trying [email protected] by hash: sha512-rbRMuBcCO+Am1GSmuKuGmb92jzUtiaOc8bnDTwjodKE0cXqkFg7WE/yGVarm/yr1fVtbrZAa2Rxb0eMF/HGuxg==
68 silly tarball trying libxslt@latest by hash: sha512-aVuYqpS54Tlsc8I8CGTUt+9lx7Ua3Y91NIKRmTO5O+qza2YwIXqnFoAyA37TqKaHhaOeI2IPJtmw5FAVsiTPYg==
69 silly extract nan@2.15.0 extracted to /Users/maheshsreenath/Desktop/test-bit/node_modules/.staging/nan-0c16ea44 (44ms)
70 silly extract [email protected] extracted to /Users/maheshsreenath/Desktop/test-bit/node_modules/.staging/node1-libxmljsmt-myh-49fa1fc2 (169ms)
71 timing audit submit Completed in 451ms
72 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 450ms
73 timing audit body Completed in 0ms
74 silly extract libxslt@latest extracted to /Users/maheshsreenath/Desktop/test-bit/node_modules/.staging/libxslt-e58fc5ac (562ms)
75 timing action:extract Completed in 566ms
76 silly doReverseSerial unbuild 24
77 silly doSerial remove 24
78 silly doSerial move 24
79 silly doSerial finalize 24
80 silly finalize /Users/maheshsreenath/Desktop/test-bit/node_modules/node1-libxmljsmt-myh/node_modules/nan
81 silly finalize /Users/maheshsreenath/Desktop/test-bit/node_modules/node1-libxmljsmt-myh
82 silly finalize /Users/maheshsreenath/Desktop/test-bit/node_modules/libxslt
83 timing action:finalize Completed in 6ms
84 silly doParallel refresh-package-json 3
85 silly refresh-package-json /Users/maheshsreenath/Desktop/test-bit/node_modules/node1-libxmljsmt-myh/node_modules/nan
86 silly refresh-package-json /Users/maheshsreenath/Desktop/test-bit/node_modules/node1-libxmljsmt-myh
87 silly refresh-package-json /Users/maheshsreenath/Desktop/test-bit/node_modules/libxslt
88 timing action:refresh-package-json Completed in 11ms
89 silly doParallel preinstall 3
90 silly preinstall [email protected]
91 info lifecycle [email protected]
preinstall: [email protected]
92 silly preinstall [email protected]
93 info lifecycle [email protected]
preinstall: [email protected]
94 silly preinstall [email protected]
95 info lifecycle [email protected]
preinstall: [email protected]
96 timing action:preinstall Completed in 1ms
97 silly doSerial build 24
98 silly build [email protected]
99 info linkStuff [email protected]
100 silly linkStuff [email protected] has /Users/maheshsreenath/Desktop/test-bit/node_modules/node1-libxmljsmt-myh/node_modules as its parent node_modules
101 silly build [email protected]
102 info linkStuff [email protected]
103 silly linkStuff [email protected] has /Users/maheshsreenath/Desktop/test-bit/node_modules as its parent node_modules
104 silly build [email protected]
105 info linkStuff [email protected]
106 silly linkStuff [email protected] has /Users/maheshsreenath/Desktop/test-bit/node_modules as its parent node_modules
107 timing action:build Completed in 1ms
108 silly doSerial global-link 24
109 silly doParallel update-linked 0
110 silly doSerial install 24
111 silly install [email protected]
112 info lifecycle [email protected]install: [email protected]
113 silly install [email protected]
114 info lifecycle [email protected]
install: [email protected]
115 verbose lifecycle [email protected]install: unsafe-perm in lifecycle true
116 verbose lifecycle [email protected]
install: PATH: /Users/maheshsreenath/.nvm/versions/node/v12.20.1/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/maheshsreenath/Desktop/test-bit/node_modules/node1-libxmljsmt-myh/node_modules/.bin:/Users/maheshsreenath/Desktop/test-bit/node_modules/.bin:/Users/maheshsreenath/.nvm/versions/node/v12.20.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
117 verbose lifecycle [email protected]install: CWD: /Users/maheshsreenath/Desktop/test-bit/node_modules/node1-libxmljsmt-myh
118 silly lifecycle [email protected]
install: Args: [ '-c', 'node-gyp rebuild' ]
119 silly lifecycle [email protected]install: Returned: code: 0 signal: null
120 silly install [email protected]
121 info lifecycle [email protected]
install: [email protected]
122 verbose lifecycle [email protected]install: unsafe-perm in lifecycle true
123 verbose lifecycle [email protected]
install: PATH: /Users/maheshsreenath/.nvm/versions/node/v12.20.1/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/maheshsreenath/Desktop/test-bit/node_modules/libxslt/node_modules/.bin:/Users/maheshsreenath/Desktop/test-bit/node_modules/.bin:/Users/maheshsreenath/.nvm/versions/node/v12.20.1/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
124 verbose lifecycle [email protected]install: CWD: /Users/maheshsreenath/Desktop/test-bit/node_modules/libxslt
125 silly lifecycle [email protected]
install: Args: [ '-c', 'node-gyp rebuild' ]
126 silly lifecycle [email protected]install: Returned: code: 1 signal: null
127 info lifecycle [email protected]
install: Failed to exec install script
128 timing action:install Completed in 76242ms
129 verbose unlock done using /Users/maheshsreenath/.npm/_locks/staging-c210e410c6fd9bee.lock for /Users/maheshsreenath/Desktop/test-bit/node_modules/.staging
130 timing stage:rollbackFailedOptional Completed in 210ms
131 timing stage:runTopLevelLifecycles Completed in 81596ms
132 silly saveTree [email protected]
132 silly saveTree └─┬ [email protected]
132 silly saveTree ├─┬ [email protected]
132 silly saveTree │ └── [email protected]
132 silly saveTree ├── [email protected]
132 silly saveTree └─┬ [email protected]
132 silly saveTree └── [email protected]
133 warn [email protected] No description
134 warn [email protected] No repository field.
135 verbose stack Error: [email protected] install: node-gyp rebuild
135 verbose stack Exit status 1
135 verbose stack at EventEmitter. (/Users/maheshsreenath/.nvm/versions/node/v12.20.1/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
135 verbose stack at EventEmitter.emit (events.js:314:20)
135 verbose stack at ChildProcess. (/Users/maheshsreenath/.nvm/versions/node/v12.20.1/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
135 verbose stack at ChildProcess.emit (events.js:314:20)
135 verbose stack at maybeClose (internal/child_process.js:1022:16)
135 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
136 verbose pkgid [email protected]
137 verbose cwd /Users/maheshsreenath/Desktop/test-bit
138 verbose Darwin 23.1.0
139 verbose argv "/Users/maheshsreenath/.nvm/versions/node/v12.20.1/bin/node" "/Users/maheshsreenath/.nvm/versions/node/v12.20.1/bin/npm" "i" "libxslt"
140 verbose node v12.20.1
141 verbose npm v6.14.10
142 error code ELIFECYCLE
143 error errno 1
144 error [email protected] install: node-gyp rebuild
144 error Exit status 1
145 error Failed at the [email protected] install script.
145 error This is probably not a problem with npm. There is likely additional logging output above.
146 verbose exit [ 1, true ]

Same issue for me.
i even tried node18.18.2 still issue persists added the npm log file for reference please help

@JJWins
Copy link
Author

JJWins commented Dec 6, 2023

tried with node v18.18.2 but it did not work

npm i libxslt
npm WARN old lockfile
npm WARN old lockfile The package-lock.json file was created with an old version of npm,
npm WARN old lockfile so supplemental metadata must be fetched from the registry.
npm WARN old lockfile
npm WARN old lockfile This is a one-time fix-up, please be patient...
npm WARN old lockfile
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup 'F:\Test programs\node js\node-test\node_modules\libxslt',
npm WARN cleanup [Error: EBUSY: resource busy or locked, rmdir 'F:\Test programs\node js\node-test\node_modules\libxslt'] {
npm WARN cleanup errno: -4082,
npm WARN cleanup code: 'EBUSY',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'F:\Test programs\node js\node-test\node_modules\libxslt'
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path F:\Test programs\node js\node-test\node_modules\node1-libxmljsmt-myh
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info find Python using Python version 3.11.7 found at "C:\Users\john.j.POLUS\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\python.exe"
npm ERR! gyp http GET https://nodejs.org/download/release/v18.18.2/node-v18.18.2-headers.tar.gz
npm ERR! gyp http 200 https://nodejs.org/download/release/v18.18.2/node-v18.18.2-headers.tar.gz
npm ERR! gyp http GET https://nodejs.org/download/release/v18.18.2/SHASUMS256.txt
npm ERR! gyp http GET https://nodejs.org/download/release/v18.18.2/win-x64/node.lib
npm ERR! gyp http 200 https://nodejs.org/download/release/v18.18.2/SHASUMS256.txt
npm ERR! gyp http 200 https://nodejs.org/download/release/v18.18.2/win-x64/node.lib
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config
npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
npm ERR! gyp ERR! find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details
npm ERR! gyp ERR! find VS looking for Visual Studio 2015
npm ERR! gyp ERR! find VS - not found
npm ERR! gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Visual Studio installation to use
npm ERR! gyp ERR! stack at VisualStudioFinder.fail (C:\Users\john.j\AppData\Roaming\nvm\v18.18.2\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47)
npm ERR! gyp ERR! stack at C:\Users\john.j\AppData\Roaming\nvm\v18.18.2\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16
npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\john.j\AppData\Roaming\nvm\v18.18.2\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:380:14)
npm ERR! gyp ERR! stack at C:\Users\john.j\AppData\Roaming\nvm\v18.18.2\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14
npm ERR! gyp ERR! stack at C:\Users\john.j\AppData\Roaming\nvm\v18.18.2\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:401:16
npm ERR! gyp ERR! stack at C:\Users\john.j\AppData\Roaming\nvm\v18.18.2\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
npm ERR! gyp ERR! stack at C:\Users\john.j\AppData\Roaming\nvm\v18.18.2\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:430:5)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:517:28)
npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1098:16)
npm ERR! gyp ERR! System Windows_NT 10.0.19045
npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\john.j\AppData\Roaming\nvm\v18.18.2\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd F:\Test programs\node js\node-test\node_modules\node1-libxmljsmt-myh
npm ERR! gyp ERR! node -v v18.18.2
npm ERR! gyp ERR! node-gyp -v v9.4.0
npm ERR! gyp ERR! not ok

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

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

5 participants