Skip to content
This repository was archived by the owner on Dec 8, 2020. It is now read-only.
This repository was archived by the owner on Dec 8, 2020. It is now read-only.

Error: Cannot find module '../build/Release/canvas.node' #1

Description

@drewbuttons

Get this error when running node app.js on MacOS Catalina 10.15.4:

Error: Cannot find module '../build/Release/canvas.node'
Require stack:
- /Users/drewstock/Desktop/teachablemachine-node-example-master/node_modules/canvas/lib/bindings.js
- /Users/drewstock/Desktop/teachablemachine-node-example-master/node_modules/canvas/lib/canvas.js
- /Users/drewstock/Desktop/teachablemachine-node-example-master/node_modules/canvas/index.js
- /Users/drewstock/Desktop/teachablemachine-node-example-master/app.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1029:15)
    at Function.Module._load (internal/modules/cjs/loader.js:898:27)
    at Module.require (internal/modules/cjs/loader.js:1089:19)
    at require (internal/modules/cjs/helpers.js:73:18)
    at Object.<anonymous> (/Users/drewstock/Desktop/teachablemachine-node-example-master/node_modules/canvas/lib/bindings.js:3:18)
    at Module._compile (internal/modules/cjs/loader.js:1200:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
    at Module.load (internal/modules/cjs/loader.js:1049:32)
    at Function.Module._load (internal/modules/cjs/loader.js:937:14)
    at Module.require (internal/modules/cjs/loader.js:1089:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/drewstock/Desktop/teachablemachine-node-example-master/node_modules/canvas/lib/bindings.js',
    '/Users/drewstock/Desktop/teachablemachine-node-example-master/node_modules/canvas/lib/canvas.js',
    '/Users/drewstock/Desktop/teachablemachine-node-example-master/node_modules/canvas/index.js',
    '/Users/drewstock/Desktop/teachablemachine-node-example-master/app.js'
  ]
}

I also got a flag saying I was going to need to manually install tf dependencies during npm install:

npm WARN @teachablemachine/image@0.8.4 requires a peer of @tensorflow/tfjs@1.3.1 but none is installed. You must install peer dependencies yourself.
npm WARN tensorflowtest@1.0.0 No repository field.
npm WARN tensorflowtest@1.0.0 license should be a valid SPDX license expression

Tried installing @tensorflow/tfjs@1.3.1 but that didn't seem to do anything.

Any ideas?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions