Closed vnxz closed 1 year ago
npm ERR! gyp info using node-gyp@5.1.1
vs. https://github.com/nodejs/node-gyp/releases -- Please upgrade.
npm ERR! gyp info using node-gyp@5.1.1
vs. https://github.com/nodejs/node-gyp/releases -- Please upgrade.
how upgrade sir, node version upgrade?
The relevant methods in the docs have been tried, and Node.js has been installed to the latest version(node v16.14.2 npm v8.7.0), but it is still not work
npm ERR! code 1 npm ERR! path C:\Users\39071\AppData\Roaming\npm\node_modules\vsce\node_modules\keytar 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 node-gyp@9.0.0 npm ERR! gyp info using node@16.14.2 | win32 | x64 npm ERR! gyp info find Python using Python version 3.10.4 found at "C:\Users\39071\AppData\Local\Programs\Python\Python310\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\39071\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:122:47)
npm ERR! gyp ERR! stack at C:\Users\39071\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:75:16 npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\39071\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:363:14) npm ERR! gyp ERR! stack at C:\Users\39071\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:71:14 npm ERR! gyp ERR! stack at C:\Users\39071\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\find-visualstudio.js:384:16 npm ERR! gyp ERR! stack at C:\Users\39071\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7 npm ERR! gyp ERR! stack at C:\Users\39071\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16 npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:406:5) npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:526:28) npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1092:16) npm ERR! gyp ERR! System Windows_NT 10.0.19044 npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\39071\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd C:\Users\39071\AppData\Roaming\npm\node_modules\vsce\node_modules\keytar npm ERR! gyp ERR! node -v v16.14.2 npm ERR! gyp ERR! node-gyp -v v9.0.0 npm ERR! gyp ERR! not ok
解决了吗 这个问题卡我很久了
When I run npm install facing same issue with new versions, Any one please help. I have installed vs 2017 and 2022 And also tried npm config set msvs_version 2022
npm ERR! path E:\web development\skuad\talent-view-service\node_modules\node-rdkafka
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 node-gyp@9.0.0
npm ERR! gyp info using node@16.15.0 | win32 | x64
npm ERR! gyp info find Python using Python version 3.10.4 found at "C:\Users\manju\AppData\Local\Microsoft\WindowsApps\Pyth\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 running in VS Command Prompt, installation path is:
npm ERR! gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022"
npm ERR! gyp ERR! find VS - will only use this version
npm ERR! gyp ERR! find VS checking VS2022 (17.2.32519.379) found at:
npm ERR! gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools"
npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features"
npm ERR! gyp ERR! find VS - found VC++ toolset: v143
npm ERR! gyp ERR! find VS - found Windows SDK: 10.0.19041.0
npm ERR! gyp ERR! find VS - does not match this Visual Studio Command Prompt
npm ERR! gyp ERR! find VS checking VS2017 (15.9.28307.1974) found at:
npm ERR! gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features"
npm ERR! gyp ERR! find VS - found VC++ toolset: v141
npm ERR! gyp ERR! find VS - found Windows SDK: 10.0.17763.0
npm ERR! gyp ERR! find VS - does not match this Visual Studio Command Prompt
npm ERR! gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use
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
pm\node_modules\node-gyp\lib\find-visualstudio.js:384:16
npm ERR! gyp ERR! stack at C:\Users\manju\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:54:7
npm ERR! gyp ERR! stack at C:\Users\manju\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\util.js:33:16
npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:406:5)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:527:28)
npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1092:16)
npm ERR! gyp ERR! System Windows_NT 10.0.19043
npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\manju\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd E:\web development\skuad\talent-view-service\node_modules\node-rdkafka
npm ERR! gyp ERR! node -v v16.15.0
npm ERR! gyp ERR! node-gyp -v v9.0.0
npm ERR! gyp ERR! not ok
npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@9.0.0 npm ERR! gyp info using node@16.15.1 | win32 | x64 npm ERR! gyp info find Python using Python version 3.10.4 found at "C:\Users\Muddasir\AppData\Local\Programs\Python\Python310\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 checking VS2019 (16.11.32228.343) found at: npm ERR! gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional" npm ERR! gyp ERR! find VS - found "Visual Studio C++ core features" npm ERR! gyp ERR! find VS - missing any VC++ toolset
I am facing the same issue, trying to install @ionic/v1-toolkit
Let's add current releases to their testing... https://github.com/ionic-team/ionic-cli/pull/4879/files
I have the same issue when running node-gyp:
I have the following software installed:
When running the npm install comand of my projects "package.json" I get the following error: My dev-dependencies in the package.json are:
_npm ERR! code 1 npm ERR! path C:\Users\xxx\WebstormProjects\projectname\node_modules\lmdb npm ERR! command failed npm ERR! command C:\windows\system32\cmd.exe /d /s /c node-gyp-build npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@5.1.1 npm ERR! gyp info using node@14.17.0 | win32 | ia32 npm ERR! gyp info find Python using Python version 3.10.5 found at "C:\Users\xxx\AppData\Local\Programs\Python\Python310\python.exe" npm ERR! gyp ERR! find VS npm ERR! gyp ERR! find VS msvs_version was set from command line or npm config npm ERR! gyp ERR! find VS - looking for Visual Studio version 2022 npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt npm ERR! gyp ERR! find VS unknown version "undefined" found at "C:\Program Files\Microsoft Visual Studio\2022\Community" npm ERR! gyp ERR! find VS unknown version "undefined" found at "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools" npm ERR! gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use 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 valid versions for msvs_version: 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\xxx\WebstormProjects\projectname\node_modules\node-gyp\lib\find-visualstudio.js:121:47) npm ERR! gyp ERR! stack at C:\Users\xxx\WebstormProjects\projectname\node_modules\node-gyp\lib\find-visualstudio.js:74:16 npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\xxx\WebstormProjects\projectname\node_modules\node-gyp\lib\find-visualstudio.js:351:14) npm ERR! gyp ERR! stack at C:\Users\xxx\WebstormProjects\projectname\node_modules\node-gyp\lib\find-visualstudio.js:70:14 npm ERR! gyp ERR! stack at C:\Users\xxx\WebstormProjects\projectname\node_modules\node-gyp\lib\find-visualstudio.js:372:16 npm ERR! gyp ERR! stack at C:\Users\xxx\WebstormProjects\projectname\node_modules\node-gyp\lib\util.js:54:7 npm ERR! gyp ERR! stack at C:\Users\xxx\WebstormProjects\projectname\node_modules\node-gyp\lib\util.js:33:16 npm ERR! gyp ERR! stack at ChildProcess.exithandler (child_process.js:326:5) npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:376:20) npm ERR! gyp ERR! stack at maybeClose (internal/child_process.js:1055:16) npm ERR! gyp ERR! System Windows_NT 10.0.19044 npm ERR! gyp ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Users\xxx\WebstormProjects\projectname\node_modules\node-gyp\bin\node-gyp.js" "rebuild" npm ERR! gyp ERR! cwd C:\Users\xxx\WebstormProjects\projectname\nodemodules\lmdb npm ERR! gyp ERR! node -v v14.17.0 npm ERR! gyp ERR! node-gyp -v v5.1.1 npm ERR! gyp ERR! not ok
How can I fix this?
npm ERR! gyp info using node-gyp@5.1.1
@cclauss okay i reached the force of using node-gyp in Version 9.0.0 after i added this explicitly as dev-dependency in my package.json: "node-gyp": "^9.0.0", "conventional-changelog-conventionalcommits": "^4.6.3", "lerna": "^4.0.0", "prettier": "^2.6.2"
following setup is currently installed:
but when I am running "npm install" oder "yarn install" with the listed package.json I also get the same error:
_gyp info it worked if it ends with ok gyp info using node-gyp@9.0.0 gyp info using node@14.17.0 | win32 | ia32 gyp info find Python using Python version 3.10.5 found at "C:\Users\xxx\AppData\Local\Programs\Python\Python310\python.exe" gyp ERR! find VS gyp ERR! find VS msvs_version not set from command line or npm config gyp ERR! find VS running in VS Command Prompt, installation path is: gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022" gyp ERR! find VS - will only use this version gyp ERR! find VS checking VS2022 (17.2.32616.157) found at: gyp ERR! find VS "C:\Program Files\Microsoft Visual Studio\2022\Community" gyp ERR! find VS - found "Visual Studio C++ core features" gyp ERR! find VS - found VC++ toolset: v143 gyp ERR! find VS - found Windows SDK: 10.0.19041.0 gyp ERR! find VS - does not match this Visual Studio Command Prompt gyp ERR! find VS checking VS2022 (17.2.32616.157) found at: gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools" gyp ERR! find VS - found "Visual Studio C++ core features" gyp ERR! find VS - found VC++ toolset: v143 gyp ERR! find VS - found Windows SDK: 10.0.19041.0 gyp ERR! find VS - does not match this Visual Studio Command Prompt gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use 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\xxx\WebstormProjects\projectname\node_modules\node-gyp\lib\find-visualstudio.js:122:47) gyp ERR! stack at C:\Users\xxx\WebstormProjects\projectname\node_modules\node-gyp\lib\find-visualstudio.js:75:16 gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (C:\Users\xxx\WebstormProjects\projectname\node_modules\node-gyp\lib\find-visualstudio.js:363:14) gyp ERR! stack at C:\Users\xxx\WebstormProjects\projectname\node_modules\node-gyp\lib\find-visualstudio.js:71:14 gyp ERR! stack at C:\Users\xxx\WebstormProjects\projectname\node_modules\node-gyp\lib\find-visualstudio.js:384:16 gyp ERR! stack at C:\Users\xxx\WebstormProjects\projectname\node_modules\node-gyp\lib\util.js:54:7 gyp ERR! stack at C:\Users\xxx\WebstormProjects\projectname\node_modules\node-gyp\lib\util.js:33:16 gyp ERR! stack at ChildProcess.exithandler (child_process.js:326:5) gyp ERR! stack at ChildProcess.emit (events.js:376:20) gyp ERR! stack at maybeClose (internal/child_process.js:1055:16) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) gyp ERR! System Windows_NT 10.0.19044 gyp ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Users\xxx\WebstormProjects\projectname\node_modules\node-gyp\bin\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\xxx\WebstormProjects\projectname\nodemodules\lmdb
I already did nearly every confiugration tips (set all Path variables, "npm config set msvs_version 2022 --global", ......) I am totaly confused because I did not get running my project since 3 days..
Hi,
Has there been any fixes for this?
Thanks
no.
Did you try with the node-gyp v9.1.0 which adds some related updates?
help me
Same Facing this Issue :(
Did you try with the node-gyp v9.1.0 which adds some related updates?
Yes. Same error.
gyp ERR! node -v v16.13.2
gyp ERR! node-gyp -v v9.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
Also having this same issue. Anyone got it working yet?
Same issue. I'm using node 16.16.0
[8/14] ⡀ bs-platform
[2/14] ⡀ canvas
[7/14] ⡀ fsevents
[4/14] ⡀ nodegit
error /Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/nodegit: Command failed.
Exit code: 1
Command: node lifecycleScripts/preinstall && node lifecycleScripts/install
Arguments:
Directory: /Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/nodegit
Output:
[nodegit] Running pre-install script
[nodegit] Running install script
Failed to execute '/Users/thuan/.nvm/versions/node/v16.16.0/bin/node /Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/nodegit/build/Release/nodegit.node --module_name=nodegit --module_path=/Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/nodegit/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
node-pre-gyp
info it worked if it ends with ok
node-pre-gyp info
using node-pre-gyp@0.13.0
node-pre-gyp info using node@16.16.0 | darwin | x64
node-pre-gyp WARN
Using request for node-pre-gyp https download
node-pre-gyp
info check checked for "/Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/nodegit/build/Release/nodegit.node" (not found)
node-pre-gyp http GET https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.27.0-node-v93-darwin-x64.tar.gz
node-pre-gyp http 404 https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.27.0-node-v93-darwin-x64.tar.gz
node-pre-gyp WARN Tried to download(404): https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.27.0-node-v93-darwin-x64.tar.gz
node-pre-gyp WARN Pre-built binaries not found for nodegit@0.27.0 and node@16.16.0 (node-v93 ABI, unknown) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.27.0-node-v93-darwin-x64.tar.gz
gyp
info it worked if it ends with ok
gyp info
using node-gyp@4.0.0
gyp info using
node@16.16.0 | darwin | x64
gyp
info ok
gyp
info it worked if it ends with ok
gyp info using node-gyp@4.0.0
gyp info using node@16.16.0 | darwin | x64
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 PythonFinder.failNoPython (/Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/node-gyp/lib/configure.js:484:19)
gyp ERR! stack at PythonFinder.<anonymous> (/Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/node-gyp/lib/configure.js:406:16)
gyp ERR! stack at F (/Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/which/which.js:68:16)
gyp ERR! stack at E (/Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/which/which.js:80:29)
gyp ERR! stack at /Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/which/which.js:89:16
gyp ERR! stack at /Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/isexe/index.js:42:5
gyp ERR! stack at /Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/isexe/mode.js:8:5
gyp ERR!
stack at FSReqCallback.oncomplete (node:fs:198:21)
gyp
ERR! System Darwin 21.6.0
gyp ERR!
command "/Users/thuan/.nvm/versions/node/v16.16.0/bin/node" "/Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/nodegit/build/Release/nodegit.node" "--module_name=nodegit" "--module_path=/Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/nodegit/build/Release" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v93"
gyp ERR! cwd /Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/nodegit
gyp ERR! node -v
v16.16.0
gyp ERR! node-gyp -v v4.0.0
gyp
ERR! not ok
node-pre-gyp
ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/Users/thuan/.nvm/versions/node/v16.16.0/bin/node /Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/nodegit/build/Release/nodegit.node --module_name=nodegit --module_path=/Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/nodegit/build/Release --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v93' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR!
stack at ChildProcess.emit (node:events:527:28)
node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1092:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
node-pre-gyp ERR! System Darwin 21.6.0
node-pre-gyp ERR! command "/Users/thuan/.nvm/versions/node/v16.16.0/bin/node" "/Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/nodegit/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp
ERR! cwd /Users/thuan/Programming/EmploymentHero/frontend-core/node_modules/nodegit
node-pre-gyp ERR! node -v v16.16.0
node-pre-gyp ERR! node-pre-gyp -v v0.13.0
node-pre-gyp
gyp info using node-gyp@4.0.0
The current version is v9.1.0 https://github.com/nodejs/node-gyp/releases Please upgrade.
I run into the same issue. I have the newest node, python, vs and OS 10. Does someone has the tip to solve this?
npm ERR! code 1
npm ERR! path C:\Users\prisc\OneDrive\Bureaublad\bootstrapfirsttime\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node scripts/build.js
npm ERR! Building: C:\Program Files\nodejs\node.exe C:\Users\prisc\OneDrive\Bureaublad\bootstrapfirsttime\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',
npm ERR! gyp verb cli 'C:\\Users\\prisc\\OneDrive\\Bureaublad\\bootstrapfirsttime\\node_modules\\node-gyp\\bin\\node-gyp.js',
npm ERR! gyp verb cli 'rebuild',
npm ERR! gyp verb cli '--verbose',
npm ERR! gyp verb cli '--libsass_ext=',
npm ERR! gyp verb cli '--libsass_cflags=',
npm ERR! gyp verb cli '--libsass_ldflags=',
npm ERR! gyp verb cli '--libsass_library='
npm ERR! gyp verb cli ]
npm ERR! gyp info using node-gyp@3.8.0
npm ERR! gyp info using node@19.0.1 | win32 | x64
npm ERR! gyp verb command rebuild []
npm ERR! gyp verb command clean []
npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb check python checking for Python executable "python2" in the PATH
npm ERR! gyp verb `which` failed Error: not found: python2
npm ERR! gyp verb `which` failed at getNotFoundError (C:\Users\prisc\OneDrive\Bureaublad\bootstrapfirsttime\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\Users\prisc\OneDrive\Bureaublad\bootstrapfirsttime\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\Users\prisc\OneDrive\Bureaublad\bootstrapfirsttime\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\Users\prisc\OneDrive\Bureaublad\bootstrapfirsttime\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\Users\prisc\OneDrive\Bureaublad\bootstrapfirsttime\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\Users\prisc\OneDrive\Bureaublad\bootstrapfirsttime\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:199:21)
npm ERR! gyp verb `which` failed python2 Error: not found: python2
npm ERR! gyp verb `which` failed at getNotFoundError (C:\Users\prisc\OneDrive\Bureaublad\bootstrapfirsttime\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\Users\prisc\OneDrive\Bureaublad\bootstrapfirsttime\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\Users\prisc\OneDrive\Bureaublad\bootstrapfirsttime\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\Users\prisc\OneDrive\Bureaublad\bootstrapfirsttime\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\Users\prisc\OneDrive\Bureaublad\bootstrapfirsttime\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\Users\prisc\OneDrive\Bureaublad\bootstrapfirsttime\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:199:21) {
npm ERR! gyp verb `which` failed code: 'ENOENT'
npm ERR! gyp verb `which` failed }
npm ERR! gyp verb check python checking for Python executable "python" in the PATH
npm ERR! gyp verb `which` succeeded python C:\Python311\python.EXE
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Command failed: C:\Python311\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack File "<string>", line 1
npm ERR! gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
npm ERR! gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
npm ERR! gyp ERR! stack
npm ERR! gyp ERR! stack at ChildProcess.exithandler (node:child_process:412:12)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack at maybeClose (node:internal/child_process:1098:16)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:304:5)
npm ERR! gyp ERR! System Windows_NT 10.0.19044
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\prisc\\OneDrive\\Bureaublad\\bootstrapfirsttime\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd C:\Users\prisc\OneDrive\Bureaublad\bootstrapfirsttime\node_modules\node-sass
npm ERR! gyp ERR! node -v v19.0.1
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\prisc\AppData\Local\npm-cache\_logs\2022-11-07T12_50_14_929Z-debug-0.log
Removing node-sass
and installing sass
solved this for me
npm uninstall node-sass
npm i sass --save
have made all the suggestion and still have the same error. Anybody knows?
No, unfortunatly not. I think I am simply to noob to fix it. I decided to take another route and leave SAAS for now :-( Thanks for helping out though!
---- Op di, 08 nov 2022 14:46:12 +0100 schreef eliot @.***> ----
did you solve it?
— Reply to this email directly, https://github.com/nodejs/node-gyp/issues/2643#issuecomment-1307246447, or https://github.com/notifications/unsubscribe-auth/A24JOY5YSKWKIGCI52WN3R3WHJKSJANCNFSM5TC3UCZQ. You are receiving this because you commented.
please someone help !
@Amir-Pasha-Bagheri Please open a new issue and read the instructions carefully.
@Amir-Pasha-Bagheri Please open a new issue and read the instructions carefully.
Don't need to open new issues when this one hasn't resolved yet !
I have done everything mentioned at top but npm i
still not working.
So for me the error was the same, I need MSVS for my application, So The application while building is trying to search the path of msvs through powershell, You need to set the language mode of power shell to FullLanguage. Check the following link: (https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_language_modes?view=powershell-7.3) Additionally take care of the following if needed
npm config set
locally and globallyThen try npm i
Hope it helps :)
Removing
node-sass
and installingsass
solved this for menpm uninstall node-sass npm i sass --save
This worked for me. Thanks :)
Удаление
node-sass
и установкаsass
решили это для меняnpm uninstall node-sass npm i sass --save
Это сработало для меня. Спасибо :)
none of the tips worked , reinstalling windows same problem , after installing Microsoft Visual C++ packages https://learn.microsoft.com/ru-ru/cpp/windows/latest-supported-vc-redist?view=msvc-170 and uninstalling sass worked
I running node version 18 got same problem but then i downgrade to node version 14 then run again npm install and problem solved.
Here my details version
PHP: V 7. Laravel: V 7. NodeJS: V14.12.0 NPM: V6.14.8 Composer: V2.0.13
Following the instructions in here helped me for windows.
npm config set msvs_version 2017
npm cache clean --force
npm install
In my case the issue was due to incompatible node js version
I had the same issue and finally this works for me, run this command: xcode-select --install
@DavidGiraldo This issue is about Windows and you are on macOS.
Having the same issue @ both mac + windows. Won't let me run npm uninstall node-saas either without failing. It's so annoying spending all this time getting node to work, i don't know what GYP or how to update it -its is not in my packages file... Did anyone find a solution that doesn't require remaking the project or spend a month learning how npm works?
What error message do you see when you npm uninstall node-sass
If there is no error message then git grep node-sass .
or grep node-sass .
and remove those lines from your packages file.
What error message do you see when you
npm uninstall node-sass
If there is no error message then
git grep node-sass .
orgrep node-sass .
and remove those lines from your packages file.
There was a bunch of errors all GYP related - enough errors to keep you entertained for year. tried all sorts of workarounds, googling for hours - too much time. This was without node-saas in the package file, with the lock file deleted, with node modules folder deleted. I sometimes feel some of the "smart" is lost in how overly complex npm is. I downgraded node to version 14 - works perfectly now, and i get to save the headache for another time lol.
I appreciate your response though 👍
I running node version 18 got same problem but then i downgrade to node version 14 then run again npm install and problem solved.
Here my details version
PHP: V 7. Laravel: V 7. NodeJS: V14.12.0 NPM: V6.14.8 Composer: V2.0.13
This solved my issue. I downgraded my Node to v14 and it worked.
Removing
node-sass
and installingsass
solved this for menpm uninstall node-sass npm i sass --save
Resolved by just removing node-sass
.
My colleagues and I have saved countless hours with this solution.
I install npm in terminal problem is here
why this happen. v14.15.4 is node version