Skip to content
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

Node Error - Cannot find module #12

Open
TristanMW opened this issue Aug 16, 2021 · 1 comment
Open

Node Error - Cannot find module #12

TristanMW opened this issue Aug 16, 2021 · 1 comment

Comments

@TristanMW
Copy link

TristanMW commented Aug 16, 2021

Good Day

Please assist here. I am getting the following error when deploying the workspace.

`Error: Cannot find module '/usr/local/lib/node_modules/node-red-contrib-tfjs-coco-ssd/node_modules/@tensorflow/tfjs-node/lib/napi-v5/tfjs_binding.node'
Require stack:

  • /usr/local/lib/node_modules/node-red-contrib-tfjs-coco-ssd/node_modules/@tensorflow/tfjs-node/dist/index.js
  • /usr/local/lib/node_modules/node-red-contrib-tfjs-coco-ssd/tfjs.js
  • /usr/local/lib/node_modules/node-red/node_modules/@node-red/registry/lib/loader.js
  • /usr/local/lib/node_modules/node-red/node_modules/@node-red/registry/lib/index.js
  • /usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/index.js
  • /usr/local/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/index.js
  • /usr/local/lib/node_modules/node-red/lib/red.js
  • /usr/local/lib/node_modules/node-red/red.js`

This has popped up on 2 separate PCs running the most recent node.js and node-red

Node-Red Core v2.0.5
Node v14.17.0
NPM v7.20.6

Thanks in advance

Screenshot 2021-08-16 at 12 31 14

@TristanMW
Copy link
Author

TristanMW commented Aug 16, 2021

Update:
OS: Linux Fedora 34

Tried using the http://:1880/coco/model.json
Screenshot 2021-08-16 at 13 05 49

Had a look in the folder for the tfjs_binding.node file. Doesnt exist
Screenshot 2021-08-16 at 13 32 57

Followed by copying the file from a Windows PC and got this error:

"Error: /root/.node-red/node_modules/@tensorflow/tfjs-node/lib/napi-v5/tfjs_binding.node: invalid ELF header"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant