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

cannot find module #1

Open
sbrinkmann23 opened this issue Oct 2, 2023 · 2 comments
Open

cannot find module #1

sbrinkmann23 opened this issue Oct 2, 2023 · 2 comments

Comments

@sbrinkmann23
Copy link

Installing this node in Node-RED results in the following message:

Error: Cannot find module '../bin/napi-v3/linux/arm/onnxruntime_binding.node'
Require stack:

  • /home/stefan/.node-red/node_modules/onnxruntime-node/dist/binding.js
  • /home/stefan/.node-red/node_modules/onnxruntime-node/dist/backend.js
  • /home/stefan/.node-red/node_modules/onnxruntime-node/dist/index.js
  • /home/stefan/.node-red/node_modules/@good-i-deer/node-red-contrib-face-detection/face-detection-node/face-detection.js
  • /usr/lib/node_modules/node-red/node_modules/@node-red/registry/lib/loader.js
  • /usr/lib/node_modules/node-red/node_modules/@node-red/registry/lib/index.js
  • /usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/nodes/index.js
  • /usr/lib/node_modules/node-red/node_modules/@node-red/runtime/lib/index.js
  • /usr/lib/node_modules/node-red/lib/red.js
  • /usr/lib/node_modules/node-red/red.js
@ramaking
Copy link
Member

ramaking commented Oct 3, 2023

First of all, thank you for your interest.

Please tell us more about your development environment.
And please let me know at what stage the error occurred.
Is it the npm install process? Or node-red execution process? Load model?

I think it would be helpful to solve the problem if you let us know the error situation in as much detail as possible!

@jussikoskinen
Copy link

jussikoskinen commented Nov 26, 2023

@ramaking I have the same issue. I have node-red v3.0.2 and node v18.18.2 on Raspberry Pi Raspbian Buster.

Here are the npm install logs:

2023-11-26T09:26:55.638Z Install : @good-i-deer/node-red-contrib-object-detection 1.0.3

2023-11-26T09:26:55.700Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict @good-i-deer/[email protected]
2023-11-26T09:26:56.974Z [err] npm
2023-11-26T09:26:56.975Z [err]  WARN
2023-11-26T09:26:56.975Z [err]  config production Use `--omit=dev` instead.
2023-11-26T09:27:15.916Z [err] npm
2023-11-26T09:27:15.917Z [err]  
2023-11-26T09:27:15.917Z [err] WARN
2023-11-26T09:27:15.918Z [err]  
2023-11-26T09:27:15.918Z [err] deprecated
2023-11-26T09:27:15.919Z [err]  @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
2023-11-26T09:28:41.393Z [out] 
2023-11-26T09:28:41.393Z [out] added 65 packages in 2m
2023-11-26T09:28:41.447Z rc=0

The error happens when I add the "Good Object Detection" node to a flow and deploy the flow. The error is

Error: Cannot find module '../bin/napi-v3/linux/arm/onnxruntime_binding.node'
Require stack:
- /home/pi/.signalk/red/node_modules/onnxruntime-node/dist/binding.js
- /home/pi/.signalk/red/node_modules/onnxruntime-node/dist/backend.js
- /home/pi/.signalk/red/node_modules/onnxruntime-node/dist/index.js
- /home/pi/.signalk/red/node_modules/@good-i-deer/node-red-contrib-object-detection/object-detection-node/object-detection.js
- /home/pi/.signalk/node_modules/@node-red/registry/lib/loader.js
- /home/pi/.signalk/node_modules/@node-red/registry/lib/index.js
- /home/pi/.signalk/node_modules/@node-red/runtime/lib/nodes/index.js
- /home/pi/.signalk/node_modules/@node-red/runtime/lib/index.js
- /home/pi/.signalk/node_modules/node-red/lib/red.js
- /home/pi/.signalk/node_modules/@signalk/signalk-node-red/index.js
- /usr/local/lib/node_modules/signalk-server/lib/interfaces/plugins.js
- /usr/local/lib/node_modules/signalk-server/lib/interfaces/index.js
- /usr/local/lib/node_modules/signalk-server/lib/serverroutes.js
- /usr/local/lib/node_modules/signalk-server/lib/index.js
- /usr/local/lib/node_modules/signalk-server/bin/signalk-server

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

3 participants