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

Build error on ubuntu 22.04 #52

Open
mwmw7 opened this issue Sep 21, 2022 · 0 comments
Open

Build error on ubuntu 22.04 #52

mwmw7 opened this issue Sep 21, 2022 · 0 comments

Comments

@mwmw7
Copy link

mwmw7 commented Sep 21, 2022

npm install opencv-build

[ 30%] Built target libwebp
[ 30%] Linking CXX static library ../lib/liblibprotobuf.a
[ 30%] Built target libprotobuf
make: *** [Makefile:166: all] Error 2
ERR! child process exited with code 2 (for more info, set '--loglevel silly') 
npm WARN @apollographql/[email protected] requires a peer of graphql@^14.2.1 || ^15.0.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of graphql@^14.2.1 || ^15.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node ./install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/hosup/.npm/_logs/2022-09-21T06_23_20_638Z-debug.log

cat ~/.npm/_logs/2022-09-21T06_23_20_638Z-debug.log

662 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
663 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
663 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
663 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   linux
663 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
664 verbose stack Error: [email protected] install: `node ./install.js`
664 verbose stack Exit status 1
664 verbose stack     at EventEmitter.<anonymous> (/home/hosup/.nvm/versions/node/v14.16.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
664 verbose stack     at EventEmitter.emit (events.js:315:20)
664 verbose stack     at ChildProcess.<anonymous> (/home/hosup/.nvm/versions/node/v14.16.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
664 verbose stack     at ChildProcess.emit (events.js:315:20)
664 verbose stack     at maybeClose (internal/child_process.js:1048:16)
664 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
665 verbose pkgid [email protected]
666 verbose cwd /home/hosup/WebstormProjects/tooning-repo/packages/tooning-graphql-server
667 verbose Linux 5.15.0-47-generic
668 verbose argv "/home/hosup/.nvm/versions/node/v14.16.0/bin/node" "/home/hosup/.nvm/versions/node/v14.16.0/bin/npm" "install" "opencv-build"
669 verbose node v14.16.0
670 verbose npm  v6.14.11
671 error code ELIFECYCLE
672 error errno 1
673 error [email protected] install: `node ./install.js`
673 error Exit status 1
674 error Failed at the [email protected] install script.
674 error This is probably not a problem with npm. There is likely additional logging output above.
675 verbose exit [ 1, true ]

lsb_release -a

No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.1 LTS
Release:	22.04
Codename:	jammy

npm doctor

npm WARN verifyCachedFiles Content garbage-collected: 6245 (1637875768 bytes)
npm WARN verifyCachedFiles Cache issues have been fixed
Check                               Value                        Recommendation
npm ping                            ok
npm -v                              v6.14.11                     Use npm v8.19.2
node -v                             v14.16.0                     Use node v16.17.0
npm config get registry             https://registry.npmjs.org/
which git                           /usr/bin/git
Perms check on cached files         ok
Perms check on global node_modules  ok
Perms check on local node_modules   ok
Verify cache contents               verified 11563 tarballs
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