Skip to content

Failure to Install delta-sharing with npm #14

Description

@MarcoFiusco

Hello,

when I try to run "npm install delta-sharing" it fails showing the following error

`npm ERR! code 1
npm ERR! path \node_modules\danfojs-node\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-3.21.1.zip
npm ERR! https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-windows-x86_64-2.9.1.zip
npm ERR! * Downloading libtensorflow
npm ERR!
npm ERR! * Building TensorFlow Node.js bindings
npm ERR! symlink ./lib/napi-v9 failed: Error: Command failed: node scripts/deps-stage.js symlink ./lib/napi-v9
npm ERR! * Symlink of lib\napi-v9\tensorflow.dll failed, creating a copy on disk.
npm ERR! node:internal/process/promises:289
npm ERR! triggerUncaughtException(err, true /* fromPromise */);
npm ERR! ^
npm ERR!
npm ERR! [Error: ENOENT: no such file or directory, copyfile '\node_modules\danfojs-node\node_modules@tensorflow\tfjs-node\deps\lib\tensorflow.dll' -> 'C:\projects\deltashare - node\node_modules\danfojs-node\node_modules@tensorflow\tfjs-node\lib\napi-v9\tensorflow.dll'] {
npm ERR! errno: -4058,
npm ERR! code: 'ENOENT',
npm ERR! syscall: 'copyfile',
npm ERR! path: '\node_modules\danfojs-node\node_modules\@tensorflow\tfjs-node\deps\lib\tensorflow.dll',
npm ERR! dest: '\node_modules\danfojs-node\node_modules\@tensorflow\tfjs-node\lib\napi-v9\tensorflow.dll'
npm ERR! }
npm ERR!
npm ERR! Node.js v21.3.0
npm ERR!
npm ERR! at genericNodeError (node:internal/errors:956:15)
npm ERR! at wrappedFn (node:internal/errors:510:14)
npm ERR! at ChildProcess.exithandler (node:child_process:422:12)
npm ERR! at ChildProcess.emit (node:events:519:28)
npm ERR! at maybeClose (node:internal/child_process:1105:16)
npm ERR! at ChildProcess._handle.onexit (node:internal/child_process:305:5) {
npm ERR! code: 1,
npm ERR! killed: false,
npm ERR! signal: null,
npm ERR! cmd: 'node scripts/deps-stage.js symlink ./lib/napi-v9'
npm ERR! }

npm ERR! A complete log of this run can be found in: \AppData\Local\npm-cache_logs\2024-06-21T15_10_09_038Z-debug-0.log`

Steps to Reproduce:

  • Run npm install delta-sharing in the project directory.

Expected Behavior:

  • The delta-sharing package should install without errors.

Actual Behavior:

  • The installation fails with the error described above.

Environment:

  • Operating System: Windows 10
  • Node.js Version: v21.3.0 (also tried with many other versions)
  • npm Version: 10.2.4

Additional Context:
I also tried installing TensorFlow directly by running the following scripts before running npm install delta-sharing, but the issue persists:

  • npm install -g node-gyp
  • npm install --save-exact @tensorflow/tfjs-node@3.1.0

Can you please check and advise on how to resolve this issue?

Thanks,
Marco

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions