Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install easy-nodegit occurred error, i don't know for why?Is my env is set wrong? #1

Open
Harveychn opened this issue Jul 14, 2022 · 1 comment

Comments

@Harveychn
Copy link

D:\demos\doc-master>cnpm install
npm WARN config global --global, --local are deprecated. Use --location=global instead.
npm WARN config global --global, --local are deprecated. Use --location=global instead.
npm WARN config global --global, --local are deprecated. Use --location=global instead.
√ Installed 1 packages
√ Linked 135 latest versions
[1/1] scripts.install [email protected][email protected] run "node lifecycleScripts/preinstall && node lifecycleScripts/install", root: "D:\demos\doc-master\node_modules\_nodegit@0.21.0@nodegit"
[nodegit] Running pre-install script
[nodegit] Running install script
node-pre-gyp
http GET https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.21.0-node-v93-win32-x64.tar.gz
node-pre-gyp http
404 https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.21.0-node-v93-win32-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.21.0-node-v93-win32-x64.tar.gz
node-pre-gyp ERR! 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.21.0-node-v93-win32-x64.tar.gz
node-pre-gyp ERR! Tried to download(undefined): https://axonodegit.s3.amazonaws.com/nodegit/nodegit/nodegit-v0.21.0-node-v93-win32-x64.tar.gz
node-pre-gyp ERR! 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 Connection closed while downloading tarball file
gypgyp
ERR! ERR!configure error
configure error
gypgyp ERR!ERR! stack stack Error: Command failed: D:\Program Files\Python38\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp Error: Command failed: D:\Program Files\Python38\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gypERR!
stackERR! File "", line 1
gypstack ERR! File "", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
stackgyp ERR! import sys; print "%s.%s.%s" % sys.version_info[:3];
stack ^
gypgyp ERR! stack ^
gyp ERR!ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp
ERR! stack at ChildProcess.exithandler (node:child_process:398:12)
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stackstack
at ChildProcess.emit (node:events:527:28)
gyp gyp ERR! stack at maybeClose (node:internal/child_process:1092:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
ERR! stack at ChildProcess.exithandler (node:child_process:398:12)
gyp ERR! gyp ERR! System Windows_NT 10.0.19044
stack at ChildProcess.emit (node:events:527:28)
gypgyp ERR!ERR!
command "D:\app\node\node.exe" "D:\demos\doc-master\node_modules\_node-gyp@3.8.0@node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=D:\demos\doc-master\node_modules\_nodegit@0.21.0@nodegit\build\Release\nodegit.node" "--module_name=nodegit" "--module_path=D:\demos\doc-master\node_modules\_nodegit@0.21.0@nodegit\build\Release"
stackgyp at maybeClose (node:internal/child_process:1092:16)
ERR! gypcwd D:\demos\doc-master\node_modules_nodegit@0.21.0@nodegit
ERR!gyp ERR!stack node -v at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
v16.16.0
gyp ERR! node-gyp -v v3.8.0
gypgyp ERR! ERR!System Windows_NT 10.0.19044
not ok
gyp ERR! command "D:\app\node\node.exe" "D:\demos\doc-master\node_modules\_node-gyp@3.8.0@node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=D:\demos\doc-master\node_modules\_nodegit@0.21.0@nodegit\build\Release\nodegit.node" "--module_name=nodegit" "--module_path=D:\demos\doc-master\node_modules\_nodegit@0.21.0@nodegit\build\Release"
gyp ERR! cwd D:\demos\doc-master\node_modules_nodegit@0.21.0@nodegit
gyp ERR! node -v v16.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
node-pre-gyp ERR!
build error
Failed to execute 'D:\app\node\node.exe D:\demos\doc-master\node_modules_node-gyp@3.8.0@node-gyp\bin\node-gyp.js configure --fallback-to-build --module=D:\demos\doc-master\node_modules_nodegit@0.21.0@nodegit\build\Release\nodegit.node --module_name=nodegit --module_path=D:\demos\doc-master\node_modules_nodegit@0.21.0@nodegit\build\Release' (1)
node-pre-gyp ERR! stack Error: Failed to execute 'D:\app\node\node.exe D:\demos\doc-master\node_modules_node-gyp@3.8.0@node-gyp\bin\node-gyp.js configure --fallback-to-build --module=D:\demos\doc-master\node_modules_nodegit@0.21.0@nodegit\build\Release\nodegit.node --module_name=nodegit --module_path=D:\demos\doc-master\node_modules_nodegit@0.21.0@nodegit\build\Release' (1)
node-pre-gyp ERR! stack at ChildProcess. (D:\demos\doc-master\node_modules_node-pre-gyp@0.6.39@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 Windows_NT 10.0.19044
node-pre-gyp ERR! command "D:\app\node\node.exe" "D:\demos\doc-master\node_modules\_node-pre-gyp@0.6.39@node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd D:\demos\doc-master\node_modules_nodegit@0.21.0@nodegit
node-pre-gyp ERR! node -v v16.16.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.39
node-pre-gyp ERR! not ok
[nodegit] ERROR - Could not finish install
[nodegit] ERROR - finished with error code: 1
[npminstall:runscript:error] [email protected][email protected] scripts.install run "node lifecycleScripts/preinstall && node lifecycleScripts/install" error: Error [RunScriptError]: Run "C:\Windows\system32\cmd.exe /d /s /c node lifecycleScripts/preinstall && node lifecycleScripts/install" error, exit code 1
at ChildProcess. (C:\Users\zhengxiaohui\AppData\Roaming\npm\node_modules\cnpm\node_modules\runscript\index.js:96:21)
at ChildProcess.emit (node:events:527:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12) {
stdio: [Object],
exitcode: 1
}
× Install fail! RunScriptError: post install error, please remove node_modules before retry!
Run "C:\Windows\system32\cmd.exe /d /s /c node lifecycleScripts/preinstall && node lifecycleScripts/install" error, exit code 1
RunScriptError: Run "C:\Windows\system32\cmd.exe /d /s /c node lifecycleScripts/preinstall && node lifecycleScripts/install" error, exit code 1
at ChildProcess. (C:\Users\zhengxiaohui\AppData\Roaming\npm\node_modules\cnpm\node_modules\runscript\index.js:96:21)
at ChildProcess.emit (node:events:527:28)
at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npminstall version: 6.4.0
npminstall args: D:\app\node\node.exe C:\Users\zhengxiaohui\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --userconfig=C:\Users\zhengxiaohui.cnpmrc --disturl=https://npmmirror.com/mirrors/node --registry=https://registry.npm.taobao.org/

@Harveychn
Copy link
Author

can you tell me which version is needed when install this pkg?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant