tfjs
tfjs copied to clipboard
Undefined variable tensorflow-library-target in binding.gyp
Hello,
I encountered some problems during the installation of the TensorFlow package (2 moderate severity vulnerabilities). When I tried to run this command to fix the problem:
npm audit fix --force
It gave me this error: "Undefined variable tensorflow-library-target in binding.gyp while trying to load binding.gyp."
This installation problem prevents me from running my code.
Could you please assist me in resolving this issue?
Thank you.
Hi, @Yveltalio
I apologize for the delay in responding. To assist you further with the Undefined variable tensorflow-library-target in binding.gyp error, could you please provide the following details:
- The specific steps you were following immediately before encountering the error. This will help us reproduce the issue on our end.
- Confirmation on whether you attempted to resolve the issue by completely removing the current installation of
@tensorflow/tfjsor@tensorflow/tfjs-nodeusingnpm uninstall @tensorflow/tfjsornpm uninstall @tensorflow/tfjs-node, respectively. - If you did uninstall, did you then reinstall them using
npm install @tensorflow/tfjsornpm install @tensorflow/tfjs-nodewith the--forceflag to ensure a clean installation?
For further troubleshooting, please share the following system information:
- Operating System you are using
- Versions of npm and node (you can obtain these details using the commands
npm -vandnode -vin your terminal) - The specific version of
@tensorflow/tfjsor@tensorflow/tfjs-nodeyou have installed - The version of Python installed on your system
Providing this information will allow us to diagnose the issue more effectively and provide further assistance.
EDIT : I believe you're following the exact steps mentioned in my one the comment and There's a possibility this issue might be related to issue https://github.com/tensorflow/tfjs/issues/8261#issuecomment-2126877157
Thank you for your cooperation and patience.
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.
This issue was closed due to lack of activity after being marked stale for past 7 days.