nodejs/node-report

Cannot find module ./api

dbraynard opened this issue · 4 comments

When I run this with from a gulp script I get the error

Cannot find module ./api

gulp version: 3.9.1
node version: 6.2.10
This is the line that causes the error.

const api = require('./api');

Where is ./api supposed to come from?

See the node-report binding.gyp file, https://github.com/nodejs/node-report/blob/master/binding.gyp

The 'api' target in the binding.gyp file builds the native component of the node-report module. So when the package is installed it creates the node_modules/node-report/api.node binary. Don't know why that does not work with gulp though.

Turns out that I didn't have the build tools installed or run them on Windows.

Facing the issue. api.node file not gettign generated through npm install. Can someone help?

Facing the saeme issue. api.node file not getting generated through npm install. Can someone help?