question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Cannot find module '.../node_modules/@tensorflow/tfjs-node/lib/napi-v4/tfjs_binding.node'

See original GitHub issue

To get help from the community, we encourage using Stack Overflow and the tensorflow.js tag.

TensorFlow.js version

@tensorflow/tfjs-core@1.2.9”:

Browser version

Describe the problem or feature request

Error: Cannot find module ‘…/node_modules/@tensorflow/tfjs-node/lib/napi-v4/tfjs_binding.node’

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:34 (10 by maintainers)

github_iconTop GitHub Comments

60reactions
haoyangnzcommented, Sep 17, 2019

Workaround: npm rebuild @tensorflow/tfjs-node --build-from-source

16reactions
nikilokcommented, Mar 20, 2020

I was facing this issue on WSL 2 using Ubuntu 18.04 Fixed it with the following commands.

sudo apt-get install build-essential
npm i node-pre-gyp -g

(if your using tfjs-node-gpu)
npm rebuild @tensorflow/tfjs-node-gpu --build-from-source

(or if your using tfjs-node instead)
npm rebuild @tensorflow/tfjs-node --build-from-source
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: cannot find module [Node npm Error Solved]
In this article, I'm going to show you how to fix the error. Why the "Error: cannot find module" Occurs. This error occurs...
Read more >
How do I resolve "Cannot find module" error using Node.js?
Using npm install installs the module into the current directory only (in a subdirectory called node_modules ). Is app.js located under ...
Read more >
How to Fix
Just installed node v5 and running npm in command line produces said error. OS X 10.10.5 How to Fix (For now) (Edited in...
Read more >
Fix Global Installs Not Working | "Cannot find module" error FIX
Getting " Cannot find module " after installing something globally (with -g)? Well, this video shows you how to fix global package/module ...
Read more >
How to resolve "Cannot find module" error in Node
When you are working in Node, you will sometimes encounter the error Cannot find module 'module-name' with the error code MODULE_NOT_FOUND .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found