Skip to content

Installation issue @tensorflow/tfjs-node-gpu with npm on Win 10 #4978

@jumrz

Description

@jumrz

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10 Pro
  • TensorFlow.js installed from (npm or script link): npm
  • TensorFlow.js version: 3.5.0
  • CUDA/cuDNN version: 11.2

Describe the problem

I can't install tfjs-node-gpu through npm.

npm ERR! code 1
npm ERR! path c:\IA\node_modules@tensorflow\tfjs-node-gpu
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node scripts/install.js gpu download
npm ERR! GPU-windows-3.5.0.zip
npm ERR! * Downloading libtensorflow
npm ERR!
npm ERR! * Building TensorFlow Node.js bindings
npm ERR! symlink ./lib/napi-v8 failed: Error: Command failed: node scripts/deps-stage.js symlink ./lib/napi-v8
npm ERR! * Symlink of lib\napi-v8\tensorflow.dll failed, creating a copy on disk.
npm ERR! node:internal/process/promises:245
npm ERR! triggerUncaughtException(err, true /* fromPromise */);
npm ERR! ^
npm ERR!
npm ERR! [Error: ENOENT: no such file or directory, copyfile 'c:\IA\node_modules@tensorflow\tfjs-node-gpu\deps\lib\tensorflow.dll' -> 'c:\IA\node_modules@tensorflow\tfjs-node-gpu\lib\napi-v8\tensorflow.dll'] {
npm ERR! errno: -4058,
npm ERR! code: 'ENOENT',
npm ERR! syscall: 'copyfile',
npm ERR! path: 'c:\IA\node_modules\@tensorflow\tfjs-node-gpu\deps\lib\tensorflow.dll',
npm ERR! dest: 'c:\IA\node_modules\@tensorflow\tfjs-node-gpu\lib\napi-v8\tensorflow.dll'
npm ERR! }
npm ERR!
npm ERR! at ChildProcess.exithandler (node:child_process:326:12)
npm ERR! at ChildProcess.emit (node:events:369:20)
npm ERR! at maybeClose (node:internal/child_process:1067:16)
npm ERR! at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {
npm ERR! killed: false,
npm ERR! code: 1,
npm ERR! signal: null,
npm ERR! cmd: 'node scripts/deps-stage.js symlink ./lib/napi-v8'
npm ERR! }

Provide the exact sequence of commands / steps that you executed before running into the problem
npm install @tensorflow/tfjs-node-gpu

I've got the same issue with "npm install @tensorflow/tfjs-node"

Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

2021-04-23T21_07_53_494Z-debug.log

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions