Created
January 21, 2018 19:59
-
-
Save dheerajbhaskar/4e517b4a34e7be48ff1fdb1dae6a0642 to your computer and use it in GitHub Desktop.
Revisions
-
dheerajbhaskar created this gist
Jan 21, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,91 @@ C:\my-home\AutomationProjects\NodeProjects\archive-git-branch-using-node>npm init -y The system cannot find the file specified. Wrote to C:\my-home\AutomationProjects\NodeProjects\archive-git-branch-using-node\package.json: { "name": "archive-git-branch-using-node", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC" } C:\my-home\AutomationProjects\NodeProjects\archive-git-branch-using-node>npm i nodegit The system cannot find the file specified. > nodegit@0.20.3 install C:\my-home\AutomationProjects\NodeProjects\archive-git-branch-using-node\node_modules\nodegit > node lifecycleScripts/preinstall && node lifecycleScripts/install [nodegit] Running pre-install script [nodegit] Running install script The system cannot find the file specified. node-pre-gyp ERR! Tried to download(403): https://nodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.20.3-node-v59-win32-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for nodegit@0.20.3 and node@9.4.0 (node-v59 ABI, unknown) (falling back to source compile with node-gyp) The system cannot find the file specified. gyp: Call to 'echo "$CXX"' returned exit status 0 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:336:16) gyp ERR! stack at ChildProcess.emit (events.js:160:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12) gyp ERR! System Windows_NT 10.0.16299 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-bu ild" "--module=C:\\my-home\\AutomationProjects\\NodeProjects\\archive-git-branch-using-node\\node_modules\\nodegit\\build\\Release\\nodegit.node" "--module_name=nodegit" "-- module_path=C:\\my-home\\AutomationProjects\\NodeProjects\\archive-git-branch-using-node\\node_modules\\nodegit\\build\\Release" "--python=C:\\Users\\Dheeraj\\.windows-build -tools\\python27\\python.exe" "--msvs_version=2015" gyp ERR! cwd C:\my-home\AutomationProjects\NodeProjects\archive-git-branch-using-node\node_modules\nodegit gyp ERR! node -v v9.4.0 gyp ERR! node-gyp -v v3.6.2 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:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure - -fallback-to-build --module=C:\my-home\AutomationProjects\NodeProjects\archive-git-branch-using-node\node_modules\nodegit\build\Release\nodegit.node --module_name=nodegit -- module_path=C:\my-home\AutomationProjects\NodeProjects\archive-git-branch-using-node\node_modules\nodegit\build\Release --python=C:\Users\Dheeraj\.windows-build-tools\python 27\python.exe --msvs_version=2015' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\my-home\AutomationProjects\NodeProjects\archive-git-branch-using-node\node_modules\node-pre-gyp\lib\util\compile. js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:160:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:943:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5) node-pre-gyp ERR! System Windows_NT 10.0.16299 node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\my-home\\AutomationProjects\\NodeProjects\\archive-git-branch-using-node\\node_modules\\node-pre-gyp\\bi n\\node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:\my-home\AutomationProjects\NodeProjects\archive-git-branch-using-node\node_modules\nodegit node-pre-gyp ERR! node -v v9.4.0 node-pre-gyp ERR! node-pre-gyp -v v0.6.39 node-pre-gyp ERR! not ok Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\ my-home\AutomationProjects\NodeProjects\archive-git-branch-using-node\node_modules\nodegit\build\Release\nodegit.node --module_name=nodegit --module_path=C:\my-home\Automati onProjects\NodeProjects\archive-git-branch-using-node\node_modules\nodegit\build\Release --python=C:\Users\Dheeraj\.windows-build-tools\python27\python.exe --msvs_version=20 15' (1) [nodegit] ERROR - Could not finish install [nodegit] ERROR - finished with error code: 1 npm WARN archive-git-branch-using-node@1.0.0 No description npm WARN archive-git-branch-using-node@1.0.0 No repository field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! nodegit@0.20.3 install: `node lifecycleScripts/preinstall && node lifecycleScripts/install` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the nodegit@0.20.3 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\Dheeraj\AppData\Roaming\npm-cache\_logs\2018-01-21T19_38_59_748Z-debug.log