Code Monkey home page Code Monkey logo

Comments (5)

paranoidPhantom avatar paranoidPhantom commented on June 12, 2024

Just discovered that #2449 attempts to fix this, but the PR is still open.

from node-gyp.

cclauss avatar cclauss commented on June 12, 2024

Please try our new installation recommendations:

from node-gyp.

7999 avatar 7999 commented on June 12, 2024

i met the same issue

from node-gyp.

cclauss avatar cclauss commented on June 12, 2024

Please provide:

  • Command typed
  • Full error log
  • The results of py --list

from node-gyp.

7999 avatar 7999 commented on June 12, 2024

@cclauss
execute command: npm install --loglevel silly

py --list
-V:3.12 * Python 3.12 (64-bit)
-V:3.11 Python 3.11 (64-bit)

error log:

error gyp info it worked if it ends with ok
error gyp verb cli [
error gyp verb cli 'C:\Program Files\nodejs\node.exe',
error gyp verb cli 'C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js',
error gyp verb cli 'rebuild'
error gyp verb cli ]
error gyp info using [email protected]
error gyp info using [email protected] | win32 | x64
error gyp verb clean removing "build" directory
error gyp verb find Python Python is not set from command line or npm configuration
error gyp verb find Python Python is not set from environment variable PYTHON
error gyp verb find Python checking if the py launcher can be used to find Python 3
error gyp verb find Python - executing "py.exe" to get Python 3 executable path
error gyp sill find Python execFile: exec = "py.exe"
error gyp sill find Python execFile: args = ["-3","-c","import sys; print(sys.executable);"]
error gyp sill find Python execFile result: err = null
error gyp sill find Python execFile result: stdout = "C:\Python312\python.exe\r\n"
error gyp sill find Python execFile result: stderr = ""
error gyp verb find Python - executable path is "C:\Python312\python.exe"
error gyp verb find Python - executing "C:\Python312\python.exe" to get version
error gyp sill find Python execFile: exec = "C:\Python312\python.exe"
error gyp sill find Python execFile: args = ["-c","import sys; print("%s.%s.%s" % sys.version_info[:3]);"]
error gyp sill find Python execFile result: err = null
error gyp sill find Python execFile result: stdout = "3.12.3\r\n"
error gyp sill find Python execFile result: stderr = ""
error gyp verb find Python - version is "3.12.3"
error gyp info find Python using Python version 3.12.3 found at "C:\Python312\python.exe"
error gyp verb get node dir no --target version specified, falling back to host node version: 18.19.0
error gyp verb install input version string "18.19.0"
error gyp verb install installing version: 18.19.0
error gyp verb install --ensure was passed, so won't reinstall if already installed
error gyp verb install version not already installed, continuing with install 18.19.0
error gyp verb ensuring devDir is created C:\Users\xxx\AppData\Local\node-gyp\Cache\18.19.0
error gyp verb created devDir C:\Users\xxx\AppData\Local\node-gyp\Cache\18.19.0
error gyp verb tarball done parsing tarball
error gyp verb on Windows; need to download node.lib...
error gyp verb x64 node.lib dir C:\Users\xxx\AppData\Local\Temp\node-gyp-tmp-8RcysJ\x64
error gyp verb x64 node.lib url https://nodejs.org/download/release/v18.19.0/win-x64/node.lib
error gyp verb check download content checksum, need to download SHASUMS256.txt...
error gyp verb checksum url https://nodejs.org/download/release/v18.19.0/SHASUMS256.txt
error gyp http GET https://nodejs.org/download/release/v18.19.0/SHASUMS256.txt
error gyp verb streaming x64 node.lib to: C:\Users\xxx\AppData\Local\Temp\node-gyp-tmp-8RcysJ\x64\node.lib
error gyp http GET https://nodejs.org/download/release/v18.19.0/win-x64/node.lib
error gyp http 200 https://nodejs.org/download/release/v18.19.0/SHASUMS256.txt
error gyp verb checksum data {"node-v18.19.0-aix-ppc64.tar.gz":"cb4a41694e46e9e3d744be83fb9d4aebcf8004cfb51b9460253054b5356f686c","node-v18.19.0-darwin-arm64.tar.gz":"8907c42a968765b77730fb319458d63ec4ed009265f8012097c3a052407aa99b","node-v18.19.0-darwin-arm64.tar.xz":"857885257c586fb13c93d33d326ca82056ba8b7445ce27cf34dd406add04158e","node-v18.19.0-darwin-x64.tar.gz":"0a749fcdf5d6bf46e1c17b3ea01e050b4d1ec3f3073b14aa745527b45a759c74","node-v18.19.0-darwin-x64.tar.xz":"4f60b40071c6a67482b99d22a5265839177b8706a2b13b493396f368f0b42b00","node-v18.19.0-headers.tar.gz":"e55820818dc52fd1cf3a86380c6244a8723be2551d97d7d0768d9716b296e0dd","node-v18.19.0-headers.tar.xz":"4045feaea77904480ee7e6b78913408a0335d1b78a249a492bb1979ff7feb3ed","node-v18.19.0-linux-arm64.tar.gz":"4297548671897a1ba6a9a78726cb3f53458048948b4f71d597886ccf799db603","node-v18.19.0-linux-arm64.tar.xz":"cf94ab72e45b855257545fec1c017bdf30a9e23611561382eaf64576b999e72d","node-v18.19.0-linux-armv7l.tar.gz":"dadebc4ffccc75e2185ec1d8223745c010a68f6644583eb1396c3ae1f9431b97","node-v18.19.0-linux-armv7l.tar.xz":"274c8747763e5d4a764f00c931da9bb541ccf0633d21e69bf14434a5b49f35e5","node-v18.19.0-linux-ppc64le.tar.gz":"51ef1765099dffdb4c36545e91533aa7ec7bf3b748dac00f79f67d8229708990","node-v18.19.0-linux-ppc64le.tar.xz":"80a41e72de675d5ce9336f1527822763253da932cdf4dfb599ac30a7f202bca8","node-v18.19.0-linux-s390x.tar.gz":"83a8a3efb96fa7d9002f17d50d871a1a22453307003e57ba1a87713a2b223789","node-v18.19.0-linux-s390x.tar.xz":"cd3ce5eaf1300f31329fd36e19103dfb0c5a45f7c547166959392c79c99bc864","node-v18.19.0-linux-x64.tar.gz":"153312ae9fe8684f345100e4d141a521dc542b36d8c1e09c31ac290eae98c62a","node-v18.19.0-linux-x64.tar.xz":"61632bb78ee828d6e8f42adc0bc2238a6b8200007093988d3927176a372281e8","node-v18.19.0.pkg":"06f3103a629dd864eca32464462bfceb0ae4f6beb134b5cdcdc6be4fecfaf594","node-v18.19.0.tar.gz":"dd4c1dc1cb94e1e29f65a3a592247edeb8ceb23483123b0e1847d75c5f0b0c17","node-v18.19.0.tar.xz":"f52b41af20596a9abd8ed75241837ec43945468221448bbf841361e2091819b6","node-v18.19.0-win-x64.7z":"791dacc5009229c6aaea3bbb36b902b796d2408af4a1d9360417be6302b19e1f","node-v18.19.0-win-x64.zip":"5311913d45e1fcc3643c58d1e3926eb85437b180f025fe5857413c9f02403645","node-v18.19.0-win-x86.7z":"20f25cae81d514a0027f8e0b52bacdb2a4960298f6bfb061d29875043720ef1b","node-v18.19.0-win-x86.zip":"3171148f735954bdca8adccb2200379e61142e0f5a2bdb4ca6432afb0d9951df","node-v18.19.0-x64.msi":"31976e025ea9b9324ec5db25cf04af8b52d8c0505e8bffe9a68176c48761ad06","node-v18.19.0-x86.msi":"ac65503bf86cd45cc50f50695395bb04f1ac5aa49a4214e2588ca6cac032cd5a","win-x64/node.exe":"770f43909f282d2ee020aa90fd580ee767fcdc7067bfa25d2095b56f5d74f0e9","win-x64/node.lib":"e196651f3f29544b7f390de22ec170e401b75d445bc6032b0cc2848904565fdd","win-x64/node_pdb.7z":"b72208250f938d07600fd5bbce2cb59af272743488e29035e6b8275a2710beb0","win-x64/node_pdb.zip":"894c0d31ae63ee9f5b19a0a1c0a2028a2ce02af73230caf22c6422865b6df6c2","win-x86/node.exe":"826f1377dcf11257d10fc84d1c32bab8d1e9e726ac90b6b854828a432f28faaa","win-x86/node.lib":"2b92b61e4507a95f00bf7788ba156077cbf432857d17ac1da9d994cae75fe987","win-x86/node_pdb.7z":"0d33381e0f60392cb6e09e92c1a37fe06b029ab5d39aac2f0ea5b7995a4da9ba","win-x86/node_pdb.zip":"26136d71c36d938667520796e928a77326ff84e2f55fdd7b436ac2b6a4739037"}
error gyp http 200 https://nodejs.org/download/release/v18.19.0/win-x64/node.lib
error gyp verb content checksum win-x64/node.lib e196651f3f29544b7f390de22ec170e401b75d445bc6032b0cc2848904565fdd
error gyp verb download contents checksum {"node-v18.19.0-headers.tar.gz":"e55820818dc52fd1cf3a86380c6244a8723be2551d97d7d0768d9716b296e0dd","win-x64/node.lib":"e196651f3f29544b7f390de22ec170e401b75d445bc6032b0cc2848904565fdd"}
error gyp verb validating download checksum for node-v18.19.0-headers.tar.gz (e55820818dc52fd1cf3a86380c6244a8723be2551d97d7d0768d9716b296e0dd == e55820818dc52fd1cf3a86380c6244a8723be2551d97d7d0768d9716b296e0dd)
error gyp verb validating download checksum for win-x64/node.lib (e196651f3f29544b7f390de22ec170e401b75d445bc6032b0cc2848904565fdd == e196651f3f29544b7f390de22ec170e401b75d445bc6032b0cc2848904565fdd)
error gyp verb get node dir target node version installed: 18.19.0
error gyp verb build dir attempting to create "build" dir: D:\WS\appium-service\node_modules\node-pty\build
error gyp verb build dir "build" dir needed to be created? Yes
error gyp verb find VS msvs_version not set from command line or npm config
error gyp verb find VS VCINSTALLDIR not set, not running in VS Command Prompt
error gyp sill find VS Running C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe [
error gyp sill find VS '-ExecutionPolicy',
error gyp sill find VS 'Unrestricted',
error gyp sill find VS '-NoProfile',
error gyp sill find VS '-Command',
error gyp sill find VS "&{Add-Type -Path 'C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\Find-VisualStudio.cs';[VisualStudioConfiguration.Main]::PrintJson()}"
error gyp sill find VS ]
error gyp sill find VS PS stderr = ""
error gyp sill find VS processing installation: "C:\Program Files\Microsoft Visual Studio\2022\Professional"
error gyp sill find VS - version match = ["17.8.34701.33","17","8"]
error gyp sill find VS - found VC.MSBuild.Base
error gyp sill find VS - found VC.Tools.x86.x64
error gyp sill find VS processing installation: "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
error gyp sill find VS - version match = ["16.11.31624.102","16","11"]
error gyp sill find VS - found VC.MSBuild.Base
error gyp sill find VS - found VC.Tools.x86.x64
error gyp sill find VS vsInfo: [
error gyp sill find VS {
error gyp sill find VS version: '17.8.34701.33',
error gyp sill find VS versionMajor: 17,
error gyp sill find VS versionMinor: 8,
error gyp sill find VS versionYear: 2022,
error gyp sill find VS path: 'C:\Program Files\Microsoft Visual Studio\2022\Professional',
error gyp sill find VS msBuild: 'C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Current\Bin\MSBuild.exe',
error gyp sill find VS toolset: 'v143',
error gyp sill find VS sdk: null
error gyp sill find VS },
error gyp sill find VS {
error gyp sill find VS version: '16.11.31624.102',
error gyp sill find VS versionMajor: 16,
error gyp sill find VS versionMinor: 11,
error gyp sill find VS versionYear: 2019,
error gyp sill find VS path: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools',
error gyp sill find VS msBuild: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe',
error gyp sill find VS toolset: 'v142',
error gyp sill find VS sdk: null
error gyp sill find VS }
error gyp sill find VS ]
error gyp verb find VS checking VS2022 (17.8.34701.33) found at:
error gyp verb find VS "C:\Program Files\Microsoft Visual Studio\2022\Professional"
error gyp verb find VS - found "Visual Studio C++ core features"
error gyp verb find VS - found VC++ toolset: v143
error gyp verb find VS - missing any Windows SDK
error gyp verb find VS checking VS2019 (16.11.31624.102) found at:
error gyp verb find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
error gyp verb find VS - found "Visual Studio C++ core features"
error gyp verb find VS - found VC++ toolset: v142
error gyp verb find VS - missing any Windows SDK
error gyp verb find VS could not find a version of Visual Studio 2017 or newer to use
error gyp verb find VS looking for Visual Studio 2015
error gyp sill reg running C:\WINDOWS\System32\reg.exe [
error gyp sill reg 'query',
error gyp sill reg 'HKLM\Software\Microsoft\VisualStudio\SxS\VC7',
error gyp sill reg '/v',
error gyp sill reg '14.0'
error gyp sill reg ]
error gyp sill reg reg.exe stdout = ""
error gyp sill reg reg.exe err = "Error: Command failed: C:\WINDOWS\System32\reg.exe query HKLM\Software\Microsoft\VisualStudio\SxS\VC7 /v 14.0\nERROR: The system was unable to find the specified registry key or value.\r\n\n at ChildProcess.exithandler (node:child_process:422:12)\n at ChildProcess.emit (node:events:517:28)\n at maybeClose (node:internal/child_process:1098:16)\n at ChildProcess._handle.onexit (node:internal/child_process:303:5)"
error gyp sill reg reg.exe stderr = "ERROR: The system was unable to find the specified registry key or value.\r\n"
error gyp sill reg running C:\WINDOWS\System32\reg.exe [
error gyp sill reg 'query',
error gyp sill reg 'HKLM\Software\Wow6432Node\Microsoft\VisualStudio\SxS\VC7',
error gyp sill reg '/v',
error gyp sill reg '14.0'
error gyp sill reg ]
error gyp sill reg reg.exe stdout = ""
error gyp sill reg reg.exe err = "Error: Command failed: C:\WINDOWS\System32\reg.exe query HKLM\Software\Wow6432Node\Microsoft\VisualStudio\SxS\VC7 /v 14.0\nERROR: The system was unable to find the specified registry key or value.\r\n\n at ChildProcess.exithandler (node:child_process:422:12)\n at ChildProcess.emit (node:events:517:28)\n at maybeClose (node:internal/child_process:1098:16)\n at ChildProcess._handle.onexit (node:internal/child_process:303:5)"
error gyp sill reg reg.exe stderr = "ERROR: The system was unable to find the specified registry key or value.\r\n"
error gyp verb find VS - not found
error gyp verb find VS not looking for VS2013 as it is only supported up to Node.js 8
error gyp ERR! find VS
error gyp ERR! find VS msvs_version not set from command line or npm config
error gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt
error gyp ERR! find VS checking VS2022 (17.8.34701.33) found at:
error gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Professional"
error gyp ERR! find VS - found "Visual Studio C++ core features"
error gyp ERR! find VS - found VC++ toolset: v143
error gyp ERR! find VS - missing any Windows SDK
error gyp ERR! find VS checking VS2019 (16.11.31624.102) found at:
error gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
error gyp ERR! find VS - found "Visual Studio C++ core features"
error gyp ERR! find VS - found VC++ toolset: v142
error gyp ERR! find VS - missing any Windows SDK
error gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
error gyp ERR! find VS looking for Visual Studio 2015
error gyp ERR! find VS - not found
error gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
error gyp ERR! find VS
error gyp ERR! find VS **************************************************************
error gyp ERR! find VS You need to install the latest version of Visual Studio
error gyp ERR! find VS including the "Desktop development with C++" workload.
error gyp ERR! find VS For more information consult the documentation at:
error gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
error gyp ERR! find VS **************************************************************
error gyp ERR! find VS
error gyp ERR! configure error
error gyp ERR! stack Error: Could not find any Visual Studio installation to use
error gyp ERR! stack at VisualStudioFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:113:11)
error gyp ERR! stack at VisualStudioFinder.findVisualStudio (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:69:17)
error gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
error gyp ERR! stack at async createBuildDir (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:69:26)
error gyp ERR! stack at async run (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js:81:18)
error gyp ERR! System Windows_NT 10.0.19045
error 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"
error gyp ERR! cwd D:\WS\service\node_modules\node-pty
error gyp ERR! node -v v18.19.0
error gyp ERR! node-gyp -v v10.0.1
error gyp ERR! not ok

from node-gyp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.