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-gyp error when building #105

Closed
BleedFeed opened this issue Jul 6, 2023 · 1 comment
Closed

node-gyp error when building #105

BleedFeed opened this issue Jul 6, 2023 · 1 comment

Comments

@BleedFeed
Copy link

hi,

i get an error when i try to run $ build-opencv --version 4.6.0 --buildRoot ~/openCV build

info install Spawning in directory:/home/eren/Downloads/opencv/node_modules/@u4/opencv4nodejs node-gyp process: node-gyp build --jobs max --release 
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64

gyp ERR! build error 
gyp ERR! stack Error: You must run `node-gyp configure` first!
gyp ERR! stack     at ReadFileContext.<anonymous> (/usr/lib/node_modules/node-gyp/lib/build.js:45:20)
gyp ERR! stack     at ReadFileContext.callback (/usr/lib/node_modules/node-gyp/node_modules/graceful-fs/graceful-fs.js:123:16)
gyp ERR! stack     at FSReqCallback.readFileAfterOpen [as oncomplete] (node:fs:315:13)
gyp ERR! System Linux 5.19.0-46-generic
gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "build" "--jobs" "max" "--release"
gyp ERR! cwd /home/eren/Downloads/opencv/node_modules/@u4/opencv4nodejs
gyp ERR! node -v v20.3.1
gyp ERR! node-gyp -v v9.4.0
gyp ERR! not ok 
error:  Error: Command failed: node-gyp build --jobs max --release 
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp ERR! build error 
gyp ERR! stack Error: You must run `node-gyp configure` first!
gyp ERR! stack     at ReadFileContext.<anonymous> (/usr/lib/node_modules/node-gyp/lib/build.js:45:20)
gyp ERR! stack     at ReadFileContext.callback (/usr/lib/node_modules/node-gyp/node_modules/graceful-fs/graceful-fs.js:123:16)
gyp ERR! stack     at FSReqCallback.readFileAfterOpen [as oncomplete] (node:fs:315:13)
gyp ERR! System Linux 5.19.0-46-generic
gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "build" "--jobs" "max" "--release"
gyp ERR! cwd /home/eren/Downloads/opencv/node_modules/@u4/opencv4nodejs
gyp ERR! node -v v20.3.1
gyp ERR! node-gyp -v v9.4.0
gyp ERR! not ok 

    at ChildProcess.exithandler (node:child_process:419:12)
    at ChildProcess.emit (node:events:511:28)
    at maybeClose (node:internal/child_process:1098:16)
    at ChildProcess._handle.onexit (node:internal/child_process:304:5) {
  code: 1,
  killed: false,
  signal: null,
  cmd: 'node-gyp build --jobs max --release '
}
ERR! install node-gyp failed and return Error Command failed: node-gyp build --jobs max --release 
ERR! install gyp info it worked if it ends with ok
ERR! install gyp info using [email protected]
ERR! install gyp info using [email protected] | linux | x64
ERR! install gyp ERR! build error 
ERR! install gyp ERR! stack Error: You must run `node-gyp configure` first!
ERR! install gyp ERR! stack     at ReadFileContext.<anonymous> (/usr/lib/node_modules/node-gyp/lib/build.js:45:20)
ERR! install gyp ERR! stack     at ReadFileContext.callback (/usr/lib/node_modules/node-gyp/node_modules/graceful-fs/graceful-fs.js:123:16)
ERR! install gyp ERR! stack     at FSReqCallback.readFileAfterOpen [as oncomplete] (node:fs:315:13)
ERR! install gyp ERR! System Linux 5.19.0-46-generic
ERR! install gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "build" "--jobs" "max" "--release"
ERR! install gyp ERR! cwd /home/eren/Downloads/opencv/node_modules/@u4/opencv4nodejs
ERR! install gyp ERR! node -v v20.3.1
ERR! install gyp ERR! node-gyp -v v9.4.0
ERR! install gyp ERR! not ok 
ERR! install  return code: 1
@BleedFeed
Copy link
Author

found solution in FAQ #20

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