-
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
Installing @tensorflow/tfjs-node error on windows #7939
Comments
Hi, @mahyasch Thank you for bringing this issue to our attention and Please refer this official documentation for
Please try to use below steps :
Could you please try above instructions with |
Hi, I've tried to run those steps as you said but still:
|
Hi, @mahyasch Could you please try to use above workaround by creating new node.js project instead of existing project and see, Is it resolving your issue or not ? If issue still persists, let us know with error log to investigate your issue further. Thank you! |
How can I create a new node.js project? |
@mahyasch Please use below steps and before that you should follow this official documentation on I hope it will help you to resolve your issue, if you need any further help let us know. Thank you!
|
I did that and still it is not fixed.
|
here is the log: |
And also I've tried to install tensorflow in Jupyter notebook, but I couldn't. but with and still:
|
Hi, @mahyasch
I see
If issue still persists, let us know with error log. Thank you! |
thanks but there are two issues, first: when i run this
|
Then I tried again to install tfjs-nodes using this command |
@mahyasch Could you please try to install either |
I did but the issue is still there. 2023-08-31T19_07_41_628Z-debug-0.log
|
Hi, @mahya-sh Apologize for the delayed response and Could you please run below command and help me with complete error log output after running this command Please follow below steps :
|
This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you. |
Getting similar to exact issues My package.json {
"name": "testing",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"@tensorflow/tfjs-node": "^3.18.0"
},
"author": "",
"license": "ISC"
} Even tried adding this postinstall
|
Realized that all is built properly, but they are placed inside NodeJS is 18 |
Downgrading to node-js |
Hi, @iongion Good to hear that, your problem solved with @mahya-sh, I would suggest you to please go with
To check if
Thank you! |
Hi, @mahya-sh We haven't heard from you in last couple of weeks so now I'm closing this issue, if someone is facing similar issue with Closing the issue since it is being tracked in this issue thread #7341 for future update If someone is facing some issue with tfjs-node on Windows machine after trying workaround mentioned in the above comment please feel free to create new issue with error log to help you further. Thank you for your understanding and patience. |
let model; I am trying to implement real-time chat communication, but here I am getting errors, I am using const express = require('express'); these packages and nodemon to automate any changes, with these version: throw new Error(message); |
When are you planning to make if compatible with node V20 LTS |
Hi! I'm new with node-red and I wanted to install tensor flow, using this in cmd:
C:\Users\mahya\.node-red>npm install @tensorflow/tfjs-node
But I keep getting some errors . Can you please help?
My system information is a Windows 10 Home, 22H2 version.
python version: 3.10.6
this is what I get
`C:\Users\mahya.node-red>npm install @tensorflow/tfjs-node
npm ERR! code 1
npm ERR! path C:\Users\mahya.node-red\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.10.0.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! C:\Users\mahya.node-red\node_modules\adm-zip\zipFile.js:101
npm ERR! if (!~endOffset) throw new Error(Utils.Errors.INVALID_FORMAT);
npm ERR! ^
npm ERR!
npm ERR! Error: Invalid or unsupported zip format. No END header found
npm ERR! at readMainHeader (C:\Users\mahya.node-red\node_modules\adm-zip\zipFile.js:101:32)
npm ERR! at new module.exports (C:\Users\mahya.node-red\node_modules\adm-zip\zipFile.js:19:9)
npm ERR! at new module.exports (C:\Users\mahya.node-red\node_modules\adm-zip\adm-zip.js:62:18)
npm ERR! at WriteStream. (C:\Users\mahya.node-red\node_modules@tensorflow\tfjs-node\scripts\resources.js:72:29)
npm ERR! at WriteStream.emit (node:events:514:28)
npm ERR! at emitCloseNT (node:internal/streams/destroy:132:10)
npm ERR! at process.processTicksAndRejections (node:internal/process/task_queues:81:21)
npm ERR!
npm ERR! Node.js v18.17.1
npm ERR! A complete log of this run can be found in: C:\Users\mahya\AppData\Local\npm-cache_logs\2023-08-28T13_33_29_211Z-debug-0.log`
I've also attached the log [file.]
2023-08-28T13_33_29_211Z-debug-0.log
The text was updated successfully, but these errors were encountered: