npm ERR! path D:\useful Laravel files\codecanyon-22764015-cryptex-ultimate-peer-to-peer-cryptocurrency-exchange-platform-with-selfhosted-wallets\BitGoJS\node_modules\bcrypto
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.10.0 found at "C:\Users\PC\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
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 (D:\useful Laravel files\codecanyon-22764015-cryptex-ultimate-peer-to-peer-cryptocurrency-exchange-platform-with-selfhosted-wallets\BitGoJS\node_modules\node-gyp\lib\find-visualstudio.js:121:47)
npm ERR! gyp ERR! stack at D:\useful Laravel files\codecanyon-22764015-cryptex-ultimate-peer-to-peer-cryptocurrency-exchange-platform-with-selfhosted-wallets\BitGoJS\node_modules\node-gyp\lib\find-visualstudio.js:74:16
npm ERR! gyp ERR! stack at VisualStudioFinder.findVisualStudio2013 (D:\useful Laravel files\codecanyon-22764015-cryptex-ultimate-peer-to-peer-cryptocurrency-exchange-platform-with-selfhosted-wallets\BitGoJS\node_modules\node-gyp\lib\find-visualstudio.js:351:14)
npm ERR! gyp ERR! stack at D:\useful Laravel files\codecanyon-22764015-cryptex-ultimate-peer-to-peer-cryptocurrency-exchange-platform-with-selfhosted-wallets\BitGoJS\node_modules\node-gyp\lib\find-visualstudio.js:70:14
npm ERR! gyp ERR! stack at D:\useful Laravel files\codecanyon-22764015-cryptex-ultimate-peer-to-peer-cryptocurrency-exchange-platform-with-selfhosted-wallets\BitGoJS\node_modules\node-gyp\lib\find-visualstudio.js:372:16
npm ERR! gyp ERR! stack at D:\useful Laravel files\codecanyon-22764015-cryptex-ultimate-peer-to-peer-cryptocurrency-exchange-platform-with-selfhosted-wallets\BitGoJS\node_modules\node-gyp\lib\util.js:54:7
npm ERR! gyp ERR! stack at D:\useful Laravel files\codecanyon-22764015-cryptex-ultimate-peer-to-peer-cryptocurrency-exchange-platform-with-selfhosted-wallets\BitGoJS\node_modules\node-gyp\lib\util.js:33:16
npm ERR! gyp ERR! stack at ChildProcess.exithandler (child_process.js:315:5)
npm ERR! gyp ERR! stack at ChildProcess.emit (events.js:315:20)
npm ERR! gyp ERR! stack at maybeClose (internal/child_process.js:1048:16)
npm ERR! gyp ERR! System Windows_NT 10.0.19043
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "D:\\useful Laravel files\\codecanyon-22764015-cryptex-ultimate-peer-to-peer-cryptocurrency-exchange-platform-with-selfhosted-wallets\\BitGoJS\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd D:\useful Laravel files\codecanyon-22764015-cryptex-ultimate-peer-to-peer-cryptocurrency-exchange-platform-with-selfhosted-wallets\BitGoJS\node_modules\bcrypto
npm ERR! gyp ERR! node -v v14.15.4
npm ERR! gyp ERR! node-gyp -v v5.1.1
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\PC\AppData\Local\npm-cache\_logs\2022-04-11T11_17_51_257Z-debug.log
why this happen.
v14.15.4 is node version
npm ERR! gyp info using [email protected]
vs. https://github.com/nodejs/node-gyp/releases -- Please upgrade.
how upgrade sir, node version upgrade?
https://github.com/nodejs/node-gyp/tree/master/docs
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 [email protected]
npm ERR! gyp info using [email protected] | 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
goofen, zafar94, keyuxu01, MarioStojcevski, vitjaz, and ijazsialpk1 reacted with thumbs up emoji
drkmen, FatihCeylanHitSoft, NakitCoins, mikedhanson, TinyCamera, mofakhamr, AwaisTheDev, Bramgus12, Abood2284, antoninnoel, and 4 more reacted with thumbs down emoji
All reactions
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 [email protected]
npm ERR! gyp info using [email protected] | 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 [email protected]
npm ERR! gyp info using [email protected] | 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
Visual Studio Build-Tools 2022
When running the npm install comand of my projects "package.json" I get the following error:
My dev-dependencies in the package.json are:
"conventional-changelog-conventionalcommits": "^4.6.3",
"lerna": "^4.0.0",
"prettier": "^2.6.2"
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 [email protected]
npm ERR! gyp info using [email protected] | 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\node_modules\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?
@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:
OS Windows 10 (Build 19044.1766)
Python version 3.10.5
NodeJS Version 14.17.0
npm version 8.13.2
node-gyp Version 9.0.0
Visual Studio Community 2022
Visual Studio Build-Tools 2022
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 [email protected]
gyp info using [email protected] | 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\node_modules\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..
[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 [email protected]
node-pre-gyp info using [email protected] | 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 [email protected] and [email protected] (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
info it worked if it ends with ok
gyp info
using [email protected]
gyp info using
[email protected] | darwin | x64
info ok
info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | 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)
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
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
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 [email protected]
npm ERR! gyp info using [email protected] | 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
cclauss, AyoLaja, marinahabib, venkateshul, alexey-artsiush, hung220901, JulianIfesiokwu, abdelhadidevv, opoinffrancisco, moomdate, and 6 more reacted with thumbs up emoji
peter-phamn, moomdate, JulianIfesiokwu, abdelhadidevv, badger-orson, hyomiTheTech, and amastaneh reacted with hooray emoji
opoinffrancisco, Usman3070, badger-orson, hyomiTheTech, MohitSaraff, ukkk2349, and amastaneh reacted with heart emoji
abdelhadidevv, moomdate, badger-orson, hyomiTheTech, and amastaneh reacted with rocket emoji
All reactions
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!
@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,
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
Check whether you need MSVS
Set the environment variables and path for msvs
Set path for msbuild and python using npm config set
locally and globally
Then try npm i
Hope it helps :)
Removing node-sass
and installing sass
solved this for me
npm 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.
Install Visual C++ Build Environment, and then select "Desktop development with C++" in installation process
When installed, launch cmd and type npm config set msvs_version 2017
In your project path, type npm cache clean --force
And then type, npm install
cannot install npm and error show gyp error
Windows: cannot install npm and error show gyp error on [email protected]
Jan 12, 2023
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.
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 installing sass
solved this for me
npm uninstall node-sass
npm i sass --save
Resolved by just removing node-sass
.
My colleagues and I have saved countless hours with this solution.