Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
71 views
in Technique[技术] by (71.8m points)

node.js - Errors installing nodegit

I am trying to get my head around setting up nodejs and realise that i need to link to a git repository. I am a real newbe and previously only used html css and PHP. scanning the web I found that nodegit was a possible solution. it said to install type npm install nodegit, but when I did I got a whole load of errors. Here is the log file from when it started reporting errors. Can anyone help?

1029 info run [email protected] install node_modules/nodegit node lifecycleScripts/preinstall && node lifecycleScripts/install
1030 info run [email protected] install { code: 1, signal: null }
1031 timing reify:rollback:createSparse Completed in 6751ms
1032 timing reify:rollback:retireShallow Completed in 228ms
1033 timing command:install Completed in 45271ms
1034 verbose stack Error: command failed
1034 verbose stack     at ChildProcess.<anonymous> (C:Program Files
odejs
ode_modules
pm
[email protected]:64:27)
1034 verbose stack     at ChildProcess.emit (node:events:376:20)
1034 verbose stack     at maybeClose (node:internal/child_process:1063:16)
1034 verbose stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:295:5)
1035 verbose pkgid [email protected]
1036 verbose cwd C:Javatest
1037 verbose Windows_NT 10.0.18363
1038 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "nodegit"
1039 verbose node v15.5.0
1040 verbose npm  v7.3.0
1041 error code 1
1042 error path C:Javatest
ode_modules
odegit
1043 error command failed
1044 error command C:Windowssystem32cmd.exe /d /s /c node lifecycleScripts/preinstall && node lifecycleScripts/install
1045 error [nodegit] Running pre-install script
1045 error [nodegit] Running install script
1045 error Failed to execute 'C:Program Files
odejs
ode.exe C:Program Files
odejs
ode_modules
pm
ode_modules
ode-gypin
ode-gyp.js configure --fallback-to-build --module=C:Javatest
ode_modules
odegituildRelease
odegit.node --module_name=nodegit --module_path=C:Javatest
ode_modules
odegituildRelease --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v88' (1)
1046 error node-pre-gyp
1046 error info it worked if it ends with ok
1046 error node-pre-gyp
1046 error info using [email protected]
1046 error node-pre-gyp
1046 error info using [email protected] | win32 | x64
1046 error node-pre-gyp WARN Using request for node-pre-gyp https download
1046 error
1046 error node-pre-gyp
1046 error info check checked for "C:Javatest
ode_modules
odegituildRelease
odegit.node" (not found)
1046 error node-pre-gyp
1046 error http GET https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.27.0-node-v88-win32-x64.tar.gz
1046 error node-pre-gyp http
1046 error 404 https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.27.0-node-v88-win32-x64.tar.gz
1046 error node-pre-gyp WARN Tried to download(404): https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.27.0-node-v88-win32-x64.tar.gz
1046 error node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v88 ABI, unknown) (falling back to source compile with node-gyp)
1046 error node-pre-gyp http 404 status code downloading tarball https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.27.0-node-v88-win32-x64.tar.gz
1046 error
1046 error gyp
1046 error
1046 error info it worked if it ends with ok
1046 error gyp
1046 error info using [email protected]
1046 error gyp
1046 error info using [email protected] | win32 | x64
1046 error gyp
1046 error info ok
1046 error gyp
1046 error info
1046 error it worked if it ends with ok
1046 error gyp
1046 error info using [email protected]
1046 error gyp
1046 error info using [email protected] | win32 | x64
1046 error gyp
1046 error ERR! find Python
1046 error gyp ERR! find Python Python is not set from command line or npm configuration
1046 error gyp
1046 error ERR! find Python Python is not set from environment variable PYTHON
1046 error gyp ERR!
1046 error find Python checking if "python3" can be used
1046 error gyp ERR!
1046 error find Python - "python3" is not in PATH or produced an error
1046 error gyp ERR! find Python
1046 error checking if "python" can be used
1046 error gyp ERR! find Python - "python" is not in PATH or produced an error
1046 error gyp
1046 error ERR! find Python checking if "python2" can be used
1046 error gyp ERR! find Python - "python2" is not in PATH or produced an error
1046 error gyp ERR!
1046 error find Python checking if Python is C:Python37python.exe
1046 error gyp ERR!
1046 error find Python - "C:Python37python.exe" could not be run
1046 error gyp ERR! find Python checking if Python is C:Python27python.exe
1046 error gyp
1046 error ERR! find Python - "C:Python27python.exe" could not be run
1046 error gyp ERR!
1046 error find Python checking if the py launcher can be used to find Python
1046 error gyp ERR! find Python - "py.exe" is not in PATH or produced an error
1046 error gyp ERR! find Python
1046 error gyp
1046 error ERR! find Python **********************************************************
1046 error gyp ERR! find Python
1046 error You need to install the latest version of Python.
1046 error gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
1046 error gyp
1046 error ERR! find Python you can try one of the following options:
1046 error gyp ERR!
1046 error find Python - Use the switch --python="C:PathTopython.exe"
1046 error gyp ERR! find Python
1046 error (accepted by both node-gyp and npm)
1046 error gyp ERR! find Python - Set the environment variable PYTHON
1046 error gyp
1046 error ERR! find Python - Set the npm configuration variable python:
1046 error gyp ERR!
1046 error find Python   npm config set python "C:PathTopython.exe"
1046 error gyp ERR! find Python
1046 error For more information consult the documentation at:
1046 error gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
1046 error gyp
1046 error ERR! find Python **********************************************************
1046 error gyp ERR!
1046 error find Python
1046 error gyp
1046 error ERR! configure error
1046 error gyp
1046 error ERR! stack Error: Could not find any Python installation to use
1046 error gyp ERR! stack
1046 error at PythonFinder.fail (C:Program Files
odejs
ode_modules
pm
ode_modules
ode-gyplibfind-python.js:302:47)
1046 error gyp ERR! stack     at PythonFinder.runChecks (C:Program Files
odejs
ode_modules
pm
ode_modules
ode-gyplibfind-python.js:136:21)
1046 error gyp
1046 error ERR! stack     at PythonFinder.<anonymous> (C:Program Files
odejs
ode_modules
pm
ode_modules
ode-gyplibfind-python.js:200:18)
1046 error gyp ERR!
1046 error stack     at PythonFinder.execFileCallback (C:Program Files
odejs
ode_modules
pm
ode_modules
ode-gyplibfind-python.js:266:16)
1046 error gyp ERR! stack     at exithandler (node:child_process:340:5)
1046 error gyp
1046 error ERR! stack     at ChildProcess.errorhandler (node:child_process:352:5)
1046 error gyp
1046 error ERR! stack     at ChildProcess.emit (node:events:376:20)
1046 error gyp ERR!
1046 error stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:282:12)
1046 error gyp ERR! stack     at onErrorNT (node:internal/child_process:476:16)
1046 error gyp ERR! stack     at processTicksAndRejections (node:internal/process/task_queues:80:21)
1046 error gyp
1046 error ERR! System Windows_NT 10.0.18363
1046 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" "configure" "--fallback-to-build" "--module=C:\Javatest\node_modules\nodegit\build\Release\nodegit.node" "--module_name=nodegit" "--module_path=C:\Javatest\node_modules\nodegit\build\Release" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v88"
1046 error gyp ERR! cwd C:Javatest
ode_modules
odegit
1046 error gyp
1046 error ERR! node -v v15.5.0
1046 error gyp
1046 error ERR! node-gyp -v v7.1.2
1046 error gyp ERR!
1046 error not ok
1046 error node-pre-gyp ERR!
1046 error build error
1046 error node-pre-gyp ERR!
1046 error stack Error: Failed to execute 'C:Program Files
odejs
ode.exe C:Program Files
odejs
ode_modules
pm
ode_modules
ode-gypin
ode-gyp.js configure --fallback-to-build --module=C:Javatest
ode_modules
odegituildRelease
odegit.node --module_name=nodegit --module_path=C:Javatest
ode_modules
odegituildRelease --napi_version=7 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v88' (1)
1046 error node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (C:Javatest
ode_modules
ode-pre-gyplibutilcompile.js:83:29)
1046 error node-pre-gyp
1046 error ERR! stack     at ChildProcess.emit (node:events:376:20)
1046 error node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1063:16)
1046 error node-pre-gyp
1046 error ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:295:5)
1046 error node-pre-gyp ERR! System Windows_NT 10.0.18363
1046 error node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Javatest\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
1046 error node-pre-gyp ERR! cwd C:Javatest
ode_modules
odegit
1046 error node-pre-gyp ERR! node -v v15.5.0
1046 error node-pre-gyp ERR! node-pre-gyp -v v0.13.0
1046 error node-pre-gyp ERR! not ok
1046 error [nodegit] ERROR - Could not finish install
1046 error [nodegit] ERROR - finished with error code: 1
1047 verbose exit 1
question from:https://stackoverflow.com/questions/65540813/errors-installing-nodegit

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
1046 error ERR! find Python Python is not set from environment variable PYTHON
1046 error gyp ERR!
1046 error find Python checking if "python3" can be used
1046 error gyp ERR!
1046 error find Python - "python3" is not in PATH or produced an error

error says python is not installed , install python and add path to PYTHON env varaible


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...