-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
I tried to install latest tfjs-node with LTS nodejs version, but I got errors #8118
Comments
I changed Nodejs versions, Python versions, Googled solutions, asked AI as a prompt engineer, updated Microsoft Studio Code c++ build tools and ran VSC as an admin, but nothing worked! |
Hi, @YaserFazil Thank you for bringing this issue to our attention and It's known issue to us and as you mentioned in the issue template you tried Node.js Please give it try from your end with one of the mentioned Node.js version ( Recommended If issue still persists please let us know with new error log to investigate this issue further from our end. Thank you for your understanding and patience. |
Well, thanks for your reply, @gaikwadrahul8 sir. I tried tow scenarios:
That one actually worked but I shouldn't use that old version of [email protected] and the second scenariou was:
But this time I got the same old error. And I shouldn't use the old version of tfjs-node that I told you in the first scenariou as well, sir, is there a way to install the latest tfjs-node with old node and python |
Hi, @YaserFazil I tried from my end with If issue still persists please help us with new error log to investigate your issue further by running this command
Here is
|
unfortunately, @gaikwadrahul8 sir, I've tried everything you told me, node 19.9.0, npm 9.6.3, python 3.9.10 and without pyenv, but again:
|
Hi, @YaserFazil I believe you set the system environment variables path for both I see you're also using Thank you for your understanding and patience. |
Hey there, @gaikwadrahul8 Yeah, I exactly applied what you did in your output log. |
Hi, @YaserFazil Thank you for the confirmation and could you please follow below steps or earlier mentioned steps in my output log with
Thank you for your understanding and patience. |
Hi, @YaserFazil Could you please confirm, are you able to install If issue still persists please let us know with new error log. Thank you for your understanding and patience. |
Hello there @gaikwadrahul8 , I apologize for the delay; I've been quite busy lately and haven't had a chance to check yet. I'll review it as soon as possible. By the way, could you please provide more details about the issue? Perhaps I can contribute to solving the problem, as I've encountered similar issues in the past and successfully resolved them. |
Hi, @YaserFazil Thank you for the update from your end and our relavant team is aware of this issue and they're working on it to fix as soon as possible at the moment with latest Node.js versions while installing the I would request you to please give it try from your end with above mentioned workaround and suggestion whenever you get chance and let us know, is it resolving your issue or not ? Thank you for your understanding and patience
|
Hi,@gaikwadrahul8
|
Hi, @Dawn-lsl I see you're trying with If issue still persists please let us know by creating new issue with new error log to investigate this issue further. Thank you for your cooperation and patience. |
Hi,@gaikwadrahul8 |
Hi, @Dawn-lsl Good to hear that your issue got resolved, even I tested from my end things are working fine with Hi, @YaserFazil , I completely understand you're looking support of the latest version of Node.js versions for tfjs-node and I see you're already following Thank you for your cooperation and patience. |
System information
Problem description
**When I try to run this command (npm install @tensorflow/tfjs-node), I'm getting the error below, can you guys please help me with this issue, I really appreciate your help, thanks: **
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup 'D:\YSR\JavaScript\AI, NodeJS and TensorFlow.js Projects\baggage_detection_system\node_modules\@tensorflow',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'D:\YSR\JavaScript\AI, NodeJS and TensorFlow.js Projects\baggage_detection_system\node_modules@tensorflow\tfjs-layers\dist'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'D:\YSR\JavaScript\AI, NodeJS and TensorFlow.js Projects\baggage_detection_system\node_modules\@tensorflow\tfjs-layers\dist'
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path D:\YSR\JavaScript\AI, NodeJS and TensorFlow.js Projects\baggage_detection_system\node_modules@tensorflow\tfjs-node
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/install.js
npm ERR! CPU-windows-4.15.0.zip
npm ERR! https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-2.9.1.zip
npm ERR! node-pre-gyp install failed with error: Error: Command failed: node-pre-gyp install --fallback-to-build
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using [email protected]
npm ERR! node-pre-gyp info using [email protected] | win32 | x64
npm ERR! node-pre-gyp info check checked for "D:\YSR\JavaScript\AI, NodeJS and TensorFlow.js Projects\baggage_detection_system\node_modules@tensorflow\tfjs-node\lib\napi-v8\tfjs_binding.node" (not found)
npm ERR! node-pre-gyp http GET https://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/4.15.0/CPU-windows-4.15.0.zip
npm ERR! node-pre-gyp ERR! install response status 404 Not Found on https://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/4.15.0/CPU-windows-4.15.0.zip
npm ERR! node-pre-gyp WARN Pre-built binaries not installable for @tensorflow/[email protected] and [email protected] (node-v115 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp WARN Hit error response status 404 Not Found on https://storage.googleapis.com/tf-builds/pre-built-binary/napi-v8/4.15.0/CPU-windows-4.15.0.zip
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 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.11.5 found at "C:\Program Files\Python311\python.exe"
npm ERR! gyp info find VS using VS2022 (17.8.34330.188) found at:
npm ERR! gyp info find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! gyp info spawn C:\Program Files\Python311\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'C:\Users\frfvi\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'msvs',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'D:\YSR\JavaScript\AI, NodeJS and TensorFlow.js Projects\baggage_detection_system\node_modules\@tensorflow\tfjs-node\build\config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\frfvi\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\Users\frfvi\AppData\Local\node-gyp\Cache\20.10.0\include\node\common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=C:\Users\frfvi\AppData\Local\node-gyp\Cache\20.10.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\Users\frfvi\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\Users\\frfvi\\AppData\\Local\\node-gyp\\Cache\\20.10.0\\<(target_arch)\\node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=D:\YSR\JavaScript\AI, NodeJS and TensorFlow.js Projects\baggage_detection_system\node_modules\@tensorflow\tfjs-node',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'D:\YSR\JavaScript\AI, NodeJS and TensorFlow.js Projects\baggage_detection_system\node_modules\@tensorflow\tfjs-node\build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info 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 spawn C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'build/binding.sln',
npm ERR! gyp info spawn args '/clp:Verbosity=minimal',
npm ERR! gyp info spawn args '/nologo',
npm ERR! gyp info spawn args '/p:Configuration=Release;Platform=x64'
npm ERR! gyp info spawn args ]
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error:
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe
failed with exit code: 1npm ERR! gyp ERR! stack at ChildProcess.onExit (C:\Users\frfvi\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:203:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:514:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12)
npm ERR! gyp ERR! System Windows_NT 10.0.22635
npm ERR! gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\frfvi\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "build" "--fallback-to-build" "--module=D:\YSR\JavaScript\AI, NodeJS and TensorFlow.js Projects\baggage_detection_system\node_modules\@tensorflow\tfjs-node\lib\napi-v8\tfjs_binding.node" "--module_name=tfjs_binding" "--module_path=D:\YSR\JavaScript\AI, NodeJS and TensorFlow.js Projects\baggage_detection_system\node_modules\@tensorflow\tfjs-node\lib\napi-v8" "--napi_version=9" "--node_abi_napi=napi" "--napi_build_version=8" "--node_napi_label=napi-v8"
npm ERR! gyp ERR! cwd D:\YSR\JavaScript\AI, NodeJS and TensorFlow.js Projects\baggage_detection_system\node_modules@tensorflow\tfjs-node
npm ERR! gyp ERR! node -v v20.10.0
npm ERR! gyp ERR! node-gyp -v v9.4.0
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\frfvi\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=D:\YSR\JavaScript\AI, NodeJS and TensorFlow.js Projects\baggage_detection_system\node_modules@tensorflow\tfjs-node\lib\napi-v8\tfjs_binding.node --module_name=tfjs_binding --module_path=D:\YSR\JavaScript\AI, NodeJS and TensorFlow.js Projects\baggage_detection_system\node_modules@tensorflow\tfjs-node\lib\napi-v8 --napi_version=9 --node_abi_napi=napi --napi_build_version=8 --node_napi_label=napi-v8' (1)
npm ERR! node-pre-gyp ERR! stack at ChildProcess. (D:\YSR\JavaScript\AI, NodeJS and TensorFlow.js Projects\baggage_detection_system\node_modules@mapbox\node-pre-gyp\lib\util\compile.js:89:23)
npm ERR! node-pre-gyp ERR! stack at ChildProcess.emit (node:events:514:28)
npm ERR! node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1105:16)
npm ERR! node-pre-gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:305:5)
npm ERR! node-pre-gyp ERR! System Windows_NT 10.0.22635
npm ERR! node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "D:\YSR\JavaScript\AI, NodeJS and TensorFlow.js Projects\baggage_detection_system\node_modules\@mapbox\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd D:\YSR\JavaScript\AI, NodeJS and TensorFlow.js Projects\baggage_detection_system\node_modules@tensorflow\tfjs-node
npm ERR! node-pre-gyp ERR! node -v v20.10.0
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v1.0.9
npm ERR! node-pre-gyp ERR! not ok
npm ERR! * Downloading libtensorflow
npm ERR!
npm ERR! * Building TensorFlow Node.js bindings
npm ERR! A complete log of this run can be found in: C:\Users\frfvi\AppData\Local\npm-cache_logs\2024-01-02T14_23_58_987Z-debug-0.log
The text was updated successfully, but these errors were encountered: