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

npm install error: Node-gyp rebuild #362

Closed
VuThuyThuy97 opened this issue Apr 8, 2019 · 8 comments

Comments

@VuThuyThuy97
Copy link

commented Apr 8, 2019

I'm trying Kurento tutorial branch 6.9.0
But I got this error when npm install.

utf-8-validate@1.2.2 install /home/thuy/Documents/workspace/kurento-tutorial-node/kurento-hello-world/node_modules/kurento-jsonrpc/node_modules/utf-8-validate
node-gyp rebuild

gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:193:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
gyp ERR! System Linux 4.15.0-45-generic
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/thuy/Documents/workspace/kurento-tutorial-node/kurento-hello-world/node_modules/kurento-jsonrpc/node_modules/utf-8-validate
gyp ERR! node -v v11.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! utf-8-validate@1.2.2 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the utf-8-validate@1.2.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Please tell me how to fix it.

@VuThuyThuy97

This comment has been minimized.

Copy link
Author

commented Apr 9, 2019

Now I'm using http server instead

@nasiruddin-saiyed

This comment has been minimized.

Copy link

commented Apr 22, 2019

@VuThuyThuy97 Hey i was trying to install but getting same error with NPM can you please share how did you fixed this ??

`

$ npm i --verb
npm info it worked if it ends with ok
npm verb cli [ '/usr/bin/node', '/usr/bin/npm', 'i', '--verb' ]
npm info using npm@6.4.1
npm info using node@v10.15.3
npm verb npm-session 741a8543fa350c77
npm info lifecycle kurento-one2one-call@6.10.0preinstall: kurento-one2one-call@6.10.0
npm timing stage:loadCurrentTree Completed in 10ms
npm timing stage:loadIdealTree:cloneCurrentTree Completed in 1ms
npm timing stage:loadIdealTree:loadShrinkwrap Completed in 46ms
npm http fetch GET 200 https://registry.npmjs.org/kurento-client 45ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/error-tojson 35ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/extend 33ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/inherits 28ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/promise 37ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/kurento-client-core 31ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/kurento-client-elements 31ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/kurento-client-filters 31ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/es6-promise 44ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/async 54ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/kurento-jsonrpc 18ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/promisecallback 19ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/asap 13ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/lodash 16ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/bufferutil 24ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/utf-8-validate 25ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/ws 34ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/bindings 16ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/bindings 13ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/nan 23ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/nan 30ms (from cache)
npm http fetch GET 304 https://registry.npmjs.org/bower 263ms (from cache)
npm WARN deprecated bower@1.8.8: We don't recommend using Bower for new projects. Please consider Yarn and Webpack or Parcel. You can read how to migrate legacy project here: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
npm http fetch GET 200 https://registry.npmjs.org/websocket-stream 10ms (from cache)
npm info lifecycle reconnect-core@1.0.0
prepack: reconnect-core@1.0.0
npm info lifecycle reconnect-core@1.0.0postpack: reconnect-core@1.0.0
npm http fetch GET 200 https://registry.npmjs.org/backoff 8ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/isbuffer 18ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/through 21ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/tinycolor 8ms (from cache)
npm http fetch GET 200 https://registry.npmjs.org/commander 11ms (from cache)
npm timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 3415ms
npm timing stage:loadIdealTree Completed in 3510ms
npm timing stage:generateActionsToTake Completed in 33ms
npm verb correctMkdir /home/nasiruddin/.npm/_locks correctMkdir not in flight; initializing
npm timing audit compress Completed in 4ms
npm info audit Submitting payload of 4246bytes
npm verb lock using /home/nasiruddin/.npm/_locks/staging-35df3a30db7de892.lock for /home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call/node_modules/.staging
npm timing audit submit Completed in 773ms
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 773ms
npm timing audit body Completed in 3ms
npm info lifecycle reconnect-core@1.0.0
prepack: reconnect-core@1.0.0
npm info lifecycle reconnect-core@1.0.0postpack: reconnect-core@1.0.0
npm timing action:extract Completed in 2848ms
npm timing action:finalize Completed in 181ms
npm timing action:refresh-package-json Completed in 329ms
npm info lifecycle asap@2.0.6
preinstall: asap@2.0.6
npm info lifecycle backoff@2.3.0preinstall: backoff@2.3.0
npm info lifecycle bindings@1.2.1
preinstall: bindings@1.2.1
npm info lifecycle commander@2.1.0preinstall: commander@2.1.0
npm info lifecycle content-disposition@0.5.0
preinstall: content-disposition@0.5.0
npm info lifecycle content-type@1.0.4preinstall: content-type@1.0.4
npm info lifecycle cookie@0.1.2
preinstall: cookie@0.1.2
npm info lifecycle cookie-signature@1.0.6preinstall: cookie-signature@1.0.6
npm info lifecycle crc@3.2.1
preinstall: crc@3.2.1
npm info lifecycle depd@1.0.1preinstall: depd@1.0.1
npm info lifecycle destroy@1.0.3
preinstall: destroy@1.0.3
npm info lifecycle ee-first@1.1.0preinstall: ee-first@1.1.0
npm info lifecycle error-tojson@0.0.1
preinstall: error-tojson@0.0.1
npm info lifecycle es6-promise@4.2.6preinstall: es6-promise@4.2.6
npm info lifecycle escape-html@1.0.1
preinstall: escape-html@1.0.1
npm info lifecycle etag@1.6.0preinstall: etag@1.6.0
npm info lifecycle extend@3.0.2
preinstall: extend@3.0.2
npm info lifecycle forwarded@0.1.2preinstall: forwarded@0.1.2
npm info lifecycle fresh@0.2.4
preinstall: fresh@0.2.4
npm info lifecycle inherits@2.0.3preinstall: inherits@2.0.3
npm info lifecycle ipaddr.js@1.0.5
preinstall: ipaddr.js@1.0.5
npm info lifecycle isbuffer@0.0.0preinstall: isbuffer@0.0.0
npm info lifecycle kurento-client-core@6.10.0
preinstall: kurento-client-core@6.10.0
npm info lifecycle kurento-client-elements@6.6.1preinstall: kurento-client-elements@6.6.1
npm info lifecycle kurento-client-filters@6.6.1
preinstall: kurento-client-filters@6.6.1
npm info lifecycle nan@2.4.0preinstall: nan@2.4.0
npm info lifecycle utf-8-validate@1.2.2
preinstall: utf-8-validate@1.2.2
npm info lifecycle lodash@4.17.11preinstall: lodash@4.17.11
npm info lifecycle async@2.6.2
preinstall: async@2.6.2
npm info lifecycle media-typer@0.3.0preinstall: media-typer@0.3.0
npm info lifecycle merge-descriptors@1.0.0
preinstall: merge-descriptors@1.0.0
npm info lifecycle methods@1.1.2preinstall: methods@1.1.2
npm info lifecycle mime@1.3.4
preinstall: mime@1.3.4
npm info lifecycle mime-db@1.40.0preinstall: mime-db@1.40.0
npm info lifecycle mime-types@2.1.24
preinstall: mime-types@2.1.24
npm info lifecycle minimist@1.2.0preinstall: minimist@1.2.0
npm info lifecycle ms@0.7.1
preinstall: ms@0.7.1
npm info lifecycle debug@2.2.0preinstall: debug@2.2.0
npm info lifecycle nan@2.13.2
preinstall: nan@2.13.2
npm info lifecycle bufferutil@1.2.1preinstall: bufferutil@1.2.1
npm info lifecycle negotiator@0.5.3
preinstall: negotiator@0.5.3
npm info lifecycle accepts@1.2.13preinstall: accepts@1.2.13
npm info lifecycle node-gyp-build@3.7.0
preinstall: node-gyp-build@3.7.0
npm info lifecycle on-finished@2.2.1preinstall: on-finished@2.2.1
npm info lifecycle finalhandler@0.3.6
preinstall: finalhandler@0.3.6
npm info lifecycle options@0.0.6preinstall: options@0.0.6
npm info lifecycle parseurl@1.3.3
preinstall: parseurl@1.3.3
npm info lifecycle path-to-regexp@0.1.3preinstall: path-to-regexp@0.1.3
npm info lifecycle promise@7.1.1
preinstall: promise@7.1.1
npm info lifecycle promisecallback@0.0.4preinstall: promisecallback@0.0.4
npm info lifecycle ws@1.0.1
preinstall: ws@1.0.1
npm info lifecycle utf-8-validate@5.0.2preinstall: utf-8-validate@5.0.2
npm info lifecycle kurento-client@6.10.0
preinstall: kurento-client@6.10.0
npm info lifecycle express@4.12.4preinstall: express@4.12.4
npm info lifecycle bower@1.8.8
preinstall: bower@1.8.8
npm info lifecycle reconnect-ws@0.0.0preinstall: reconnect-ws@0.0.0
npm info lifecycle websocket-stream@0.5.1
preinstall: websocket-stream@0.5.1
npm info lifecycle ws@0.4.32preinstall: ws@0.4.32
npm info lifecycle nan@1.0.0
preinstall: nan@1.0.0
npm info lifecycle vary@1.0.1preinstall: vary@1.0.1
npm info lifecycle serve-static@1.9.3
preinstall: serve-static@1.9.3
npm info lifecycle utils-merge@1.0.0preinstall: utils-merge@1.0.0
npm info lifecycle kurento-jsonrpc@6.10.0
preinstall: kurento-jsonrpc@6.10.0
npm info lifecycle ws@1.1.5preinstall: ws@1.1.5
npm info lifecycle ultron@1.0.2
preinstall: ultron@1.0.2
npm info lifecycle type-is@1.6.16preinstall: type-is@1.6.16
npm info lifecycle tinycolor@0.0.1
preinstall: tinycolor@0.0.1
npm info lifecycle through@2.3.8preinstall: through@2.3.8
npm info lifecycle send@0.12.3
preinstall: send@0.12.3
npm info lifecycle reconnect-core@1.0.0preinstall: reconnect-core@1.0.0
npm info lifecycle range-parser@1.0.3
preinstall: range-parser@1.0.3
npm info lifecycle qs@2.4.2preinstall: qs@2.4.2
npm info lifecycle proxy-addr@1.0.10
preinstall: proxy-addr@1.0.10
npm timing action:preinstall Completed in 76ms
npm info linkStuff asap@2.0.6
npm info linkStuff backoff@2.3.0
npm info linkStuff bindings@1.2.1
npm info linkStuff commander@2.1.0
npm info linkStuff content-disposition@0.5.0
npm info linkStuff content-type@1.0.4
npm info linkStuff cookie@0.1.2
npm info linkStuff cookie-signature@1.0.6
npm info linkStuff crc@3.2.1
npm info linkStuff depd@1.0.1
npm info linkStuff destroy@1.0.3
npm info linkStuff ee-first@1.1.0
npm info linkStuff error-tojson@0.0.1
npm info linkStuff es6-promise@4.2.6
npm info linkStuff escape-html@1.0.1
npm info linkStuff etag@1.6.0
npm info linkStuff extend@3.0.2
npm info linkStuff forwarded@0.1.2
npm info linkStuff fresh@0.2.4
npm info linkStuff inherits@2.0.3
npm info linkStuff ipaddr.js@1.0.5
npm info linkStuff isbuffer@0.0.0
npm info linkStuff kurento-client-core@6.10.0
npm info linkStuff kurento-client-elements@6.6.1
npm info linkStuff kurento-client-filters@6.6.1
npm info linkStuff nan@2.4.0
npm info linkStuff utf-8-validate@1.2.2
npm info linkStuff lodash@4.17.11
npm info linkStuff async@2.6.2
npm info linkStuff media-typer@0.3.0
npm info linkStuff merge-descriptors@1.0.0
npm info linkStuff methods@1.1.2
npm info linkStuff mime@1.3.4
npm verb linkBins [ { mime: 'cli.js' },
npm verb linkBins '/home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call/node_modules/.bin',
npm verb linkBins false ]
npm info linkStuff mime-db@1.40.0
npm info linkStuff mime-types@2.1.24
npm info linkStuff minimist@1.2.0
npm info linkStuff ms@0.7.1
npm info linkStuff debug@2.2.0
npm info linkStuff nan@2.13.2
npm info linkStuff bufferutil@1.2.1
npm info linkStuff negotiator@0.5.3
npm info linkStuff accepts@1.2.13
npm info linkStuff node-gyp-build@3.7.0
npm verb linkBins [ { 'node-gyp-build': './bin.js',
npm verb linkBins 'node-gyp-build-optional': './optional.js',
npm verb linkBins 'node-gyp-build-test': './build-test.js' },
npm verb linkBins '/home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call/node_modules/.bin',
npm verb linkBins false ]
npm info linkStuff on-finished@2.2.1
npm info linkStuff finalhandler@0.3.6
npm info linkStuff options@0.0.6
npm info linkStuff parseurl@1.3.3
npm info linkStuff path-to-regexp@0.1.3
npm info linkStuff promise@7.1.1
npm info linkStuff promisecallback@0.0.4
npm info linkStuff proxy-addr@1.0.10
npm info linkStuff qs@2.4.2
npm info linkStuff range-parser@1.0.3
npm info linkStuff reconnect-core@1.0.0
npm info linkStuff send@0.12.3
npm info linkStuff through@2.3.8
npm info linkStuff tinycolor@0.0.1
npm info linkStuff type-is@1.6.16
npm info linkStuff ultron@1.0.2
npm info linkStuff ws@1.1.5
npm info linkStuff kurento-jsonrpc@6.10.0
npm info linkStuff utils-merge@1.0.0
npm info linkStuff serve-static@1.9.3
npm info linkStuff vary@1.0.1
npm info linkStuff nan@1.0.0
npm info linkStuff ws@0.4.32
npm verb linkBins [ { wscat: './bin/wscat' },
npm verb linkBins '/home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call/node_modules/websocket-stream/node_modules/.bin',
npm verb linkBins false ]
npm info linkStuff websocket-stream@0.5.1
npm info linkStuff reconnect-ws@0.0.0
npm info linkStuff bower@1.8.8
npm verb linkBins [ { bower: 'bin/bower' },
npm verb linkBins '/home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call/node_modules/.bin',
npm verb linkBins false ]
npm info linkStuff express@4.12.4
npm info linkStuff kurento-client@6.10.0
npm info linkStuff utf-8-validate@5.0.2
npm info linkStuff ws@1.0.1
npm timing action:build Completed in 113ms
npm info lifecycle asap@2.0.6install: asap@2.0.6
npm info lifecycle backoff@2.3.0
install: backoff@2.3.0
npm info lifecycle bindings@1.2.1install: bindings@1.2.1
npm info lifecycle commander@2.1.0
install: commander@2.1.0
npm info lifecycle content-disposition@0.5.0install: content-disposition@0.5.0
npm info lifecycle content-type@1.0.4
install: content-type@1.0.4
npm info lifecycle cookie@0.1.2install: cookie@0.1.2
npm info lifecycle cookie-signature@1.0.6
install: cookie-signature@1.0.6
npm info lifecycle crc@3.2.1install: crc@3.2.1
npm info lifecycle depd@1.0.1
install: depd@1.0.1
npm info lifecycle destroy@1.0.3install: destroy@1.0.3
npm info lifecycle ee-first@1.1.0
install: ee-first@1.1.0
npm info lifecycle error-tojson@0.0.1install: error-tojson@0.0.1
npm info lifecycle es6-promise@4.2.6
install: es6-promise@4.2.6
npm info lifecycle escape-html@1.0.1install: escape-html@1.0.1
npm info lifecycle etag@1.6.0
install: etag@1.6.0
npm info lifecycle extend@3.0.2install: extend@3.0.2
npm info lifecycle forwarded@0.1.2
install: forwarded@0.1.2
npm info lifecycle fresh@0.2.4install: fresh@0.2.4
npm info lifecycle inherits@2.0.3
install: inherits@2.0.3
npm info lifecycle ipaddr.js@1.0.5install: ipaddr.js@1.0.5
npm info lifecycle isbuffer@0.0.0
install: isbuffer@0.0.0
npm info lifecycle kurento-client-core@6.10.0install: kurento-client-core@6.10.0
npm info lifecycle kurento-client-elements@6.6.1
install: kurento-client-elements@6.6.1
npm info lifecycle kurento-client-filters@6.6.1install: kurento-client-filters@6.6.1
npm info lifecycle nan@2.4.0
install: nan@2.4.0
npm info lifecycle utf-8-validate@1.2.2~install: utf-8-validate@1.2.2

> utf-8-validate@1.2.2 install /home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call/node_modules/kurento-jsonrpc/node_modules/utf-8-validate
> node-gyp rebuild

gyp info it worked if it ends with ok
gyp verb cli [ '/usr/bin/node',
gyp verb cli '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli 'rebuild' ]
gyp info using node-gyp@3.8.0
gyp info using node@10.15.3 | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb which succeeded python2 /usr/bin/python2
gyp verb check python version /usr/bin/python2 -c &quot;import sys; print &quot;2.7.15 <span style="background-color:#2E3436"><font color="#D3D7CF">gyp</font></span> <span style="background-color:#2E3436"><font color="#3465A4">verb</font></span> <font color="#75507B">check python version</font> .%s.%s&quot; % sys.version_info[:3];&quot; returned: %j
gyp verb get node dir no --target version specified, falling back to host node version: 10.15.3
gyp verb command install [ '10.15.3' ]
gyp verb install input version string "10.15.3"
gyp verb install installing version: 10.15.3
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 10.15.3
gyp verb build dir attempting to create "build" dir: /home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call/node_modules/kurento-jsonrpc/node_modules/utf-8-validate/build
gyp verb build dir "build" dir needed to be created? /home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call/node_modules/kurento-jsonrpc/node_modules/utf-8-validate/build
gyp verb build/config.gypi creating config file
gyp verb build/config.gypi writing out config file: /home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call/node_modules/kurento-jsonrpc/node_modules/utf-8-validate/build/config.gypi
gyp verb config.gypi checking for gypi file: /home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call/node_modules/kurento-jsonrpc/node_modules/utf-8-validate/config.gypi
gyp verb common.gypi checking for gypi file: /home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call/node_modules/kurento-jsonrpc/node_modules/utf-8-validate/common.gypi
gyp verb gyp gyp format was not specified; forcing "make"
gyp info spawn /usr/bin/python2
gyp info spawn args [ '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'make',
gyp info spawn args '-I',
gyp info spawn args '/home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call/node_modules/kurento-jsonrpc/node_modules/utf-8-validate/build/config.gypi',
gyp info spawn args '-I',
gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args '-I',
gyp info spawn args '/home/nasiruddin/.node-gyp/10.15.3/include/node/common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=/home/nasiruddin/.node-gyp/10.15.3',
gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args '-Dnode_lib_file=/home/nasiruddin/.node-gyp/10.15.3/<(target_arch)/node.lib',
gyp info spawn args '-Dmodule_root_dir=/home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call/node_modules/kurento-jsonrpc/node_modules/utf-8-validate',
gyp info spawn args '-Dnode_engine=v8',
gyp info spawn args '--depth=.',
gyp info spawn args '--no-parallel',
gyp info spawn args '--generator-output',
gyp info spawn args 'build',
gyp info spawn args '-Goutput_dir=.' ]
gyp verb command build []
gyp verb build type Release
gyp verb architecture x64
gyp verb node dev dir /home/nasiruddin/.node-gyp/10.15.3
gyp verb which succeeded for make /usr/bin/make
gyp info spawn make
gyp info spawn args [ 'V=1', 'BUILDTYPE=Release', '-C', 'build' ]
make: Entering directory '/home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call/node_modules/kurento-jsonrpc/node_modules/utf-8-validate/build'
g++ '-DNODE_GYP_MODULE_NAME=validation' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/nasiruddin/.node-gyp/10.15.3/include/node -I/home/nasiruddin/.node-gyp/10.15.3/src -I/home/nasiruddin/.node-gyp/10.15.3/deps/openssl/config -I/home/nasiruddin/.node-gyp/10.15.3/deps/openssl/openssl/include -I/home/nasiruddin/.node-gyp/10.15.3/deps/uv/include -I/home/nasiruddin/.node-gyp/10.15.3/deps/zlib -I/home/nasiruddin/.node-gyp/10.15.3/deps/v8/include -I../../nan -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O2 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -MMD -MF ./Release/.deps/Release/obj.target/validation/src/validation.o.d.raw -c -o Release/obj.target/validation/src/validation.o ../src/validation.cc
In file included from ../../nan/nan.h:190:0,
from ../src/validation.cc:15:
../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’:
../../nan/nan_maybe_43_inl.h:88:15: error: class v8::Object’ has no member named ‘ForceSet
return obj->ForceSet(GetCurrentContext(), key, value, attribs);
^~~~~~~~
In file included from ../src/validation.cc:15:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>)’:
../../nan/nan.h:817:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate
, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, func, argc, argv);
^
In file included from ../src/validation.cc:8:0:
/home/nasiruddin/.node-gyp/10.15.3/include/node/node.h:177:50: note: declared here
NODE_EXTERN v8::Local<v8::Value> MakeCallback(
^
/home/nasiruddin/.node-gyp/10.15.3/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/validation.cc:15:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>
)’:
../../nan/nan.h:831:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, symbol, argc, argv);
^
In file included from ../src/validation.cc:8:0:
/home/nasiruddin/.node-gyp/10.15.3/include/node/node.h:170:50: note: declared here
NODE_EXTERN v8::Local<v8::Value> MakeCallback(
^
/home/nasiruddin/.node-gyp/10.15.3/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/validation.cc:15:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char
, int, v8::Local<v8::Value>)’:
../../nan/nan.h:845:62: warning: v8::Local<v8::Value> node::MakeCallback(v8::Isolate
, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, method, argc, argv);
^
In file included from ../src/validation.cc:8:0:
/home/nasiruddin/.node-gyp/10.15.3/include/node/node.h:163:50: note: declared here
NODE_EXTERN v8::Local<v8::Value> MakeCallback(
^
/home/nasiruddin/.node-gyp/10.15.3/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED
attribute((deprecated(message))) declarator
^~~~~~~~~~
In file included from ../src/validation.cc:15:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate
, v8::Local<v8::Object>, int, v8::Local<v8::Value>) const’:
../../nan/nan.h:1453:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate
, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
));
^
In file included from ../src/validation.cc:8:0:
/home/nasiruddin/.node-gyp/10.15.3/include/node/node.h:177:50: note: declared here
NODE_EXTERN v8::Local<v8::Value> MakeCallback(
^
/home/nasiruddin/.node-gyp/10.15.3/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED
attribute((deprecated(message))) declarator
^~~~~~~~~~
../src/validation.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Validation::IsValidUTF8(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/validation.cc:131:50: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Local<Object> buffer_obj = info[0]->ToObject();
^
In file included from ../src/validation.cc:7:0:
/home/nasiruddin/.node-gyp/10.15.3/include/node/v8.h:10046:15: note: declared here
Local<Object> Value::ToObject() const {
^~~~~
../src/validation.cc: In function ‘int is_valid_utf8(size_t, char
)’:
../src/validation.cc:81:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 5 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:82:7: note: here
case 4 : ch += (uint8_t) value[i++]; ch <<= 6;
^~~~
../src/validation.cc:82:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 4 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:83:7: note: here
case 3 : ch += (uint8_t) value[i++]; ch <<= 6;
^~~~
../src/validation.cc:83:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 3 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:84:7: note: here
case 2 : ch += (uint8_t) value[i++]; ch <<= 6;
^~~~
../src/validation.cc:84:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 2 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:85:7: note: here
case 1 : ch += (uint8_t) value[i++]; ch <<= 6;
^~~~
../src/validation.cc:85:47: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 1 : ch += (uint8_t) value[i++]; ch <<= 6;
~~~^~~~~
../src/validation.cc:86:7: note: here
case 0 : ch += (uint8_t) value[i];
^~~~
../src/validation.cc: In function ‘int isLegalUTF8(const uint8_t*, int)’:
../src/validation.cc:51:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 4: if ((a = (--srcptr)) < 0x80 || a > 0xBF) return 0;
^~
../src/validation.cc:52:5: note: here
case 3: if ((a = (
--srcptr)) < 0x80 || a > 0xBF) return 0;
^~~~
../src/validation.cc:52:13: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 3: if ((a = (--srcptr)) < 0x80 || a > 0xBF) return 0;
^~
../src/validation.cc:53:5: note: here
case 2: if ((a = (
--srcptr)) < 0x80 || a > 0xBF) return 0;
^~~~
../src/validation.cc:59:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
case 0xF4: if (a > 0x8F) return 0;
^
../src/validation.cc:62:5: note: here
case 1: if (*source >= 0x80 && *source < 0xC2) return 0;
^~~~
validation.target.mk:102: recipe for target 'Release/obj.target/validation/src/validation.o' failed
make: *** [Release/obj.target/validation/src/validation.o] Error 1
make: Leaving directory '/home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call/node_modules/kurento-jsonrpc/node_modules/utf-8-validate/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:189:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.15.0-47-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call/node_modules/kurento-jsonrpc/node_modules/utf-8-validate
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm verb lifecycle utf-8-validate@1.2.2install: unsafe-perm in lifecycle true
npm verb lifecycle utf-8-validate@1.2.2install: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call/node_modules/kurento-jsonrpc/node_modules/utf-8-validate/node_modules/.bin:/home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call/node_modules/kurento-jsonrpc/node_modules/.bin:/home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/adt-bundle-linux-x86-20140702/sdk/tools:/opt/adt-bundle-linux-x86-20140702/sdk/platform-tools:/opt/adt-bundle-linux-x86-20140702/android-studio/gradle/gradle-4.1/bin
npm verb lifecycle utf-8-validate@1.2.2
install: CWD: /home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call/node_modules/kurento-jsonrpc/node_modules/utf-8-validate
npm info lifecycle utf-8-validate@1.2.2~install: Failed to exec install script
npm timing action:install Completed in 1515ms
npm verb unlock done using /home/nasiruddin/.npm/_locks/staging-35df3a30db7de892.lock for /home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call/node_modules/.staging
npm timing stage:rollbackFailedOptional Completed in 40ms
npm timing stage:runTopLevelLifecycles Completed in 8820ms
npm verb stack Error: utf-8-validate@1.2.2 install: node-gyp rebuild
npm verb stack Exit status 1
npm verb stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
npm verb stack at EventEmitter.emit (events.js:189:13)
npm verb stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
npm verb stack at ChildProcess.emit (events.js:189:13)
npm verb stack at maybeClose (internal/child_process.js:970:16)
npm verb stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
npm verb pkgid utf-8-validate@1.2.2
npm verb cwd /home/nasiruddin/Desktop/March-19/LocalChat/kurento-tutorial-node/kurento-one2one-call
npm verb Linux 4.15.0-47-generic
npm verb argv "/usr/bin/node" "/usr/bin/npm" "i" "--verb"
npm verb node v10.15.3
npm verb npm v6.4.1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! utf-8-validate@1.2.2 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the utf-8-validate@1.2.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm verb exit [ 1, true ]
npm timing npm Completed in 9252ms

npm ERR! A complete log of this run can be found in:
npm ERR! /home/nasiruddin/.npm/_logs/2019-04-22T14_18_06_045Z-debug.log

`

@micaelgallego

This comment has been minimized.

Copy link
Member

commented Apr 22, 2019

@yonghongren

This comment has been minimized.

Copy link

commented May 15, 2019

hi @micaelgallego,

The failure is due to kurent-client depends on older version of Node.js:

├─┬ kurento-client@6.10.0
│ ├── async@2.6.2
│ ├── error-tojson@0.0.1
│ ├── kurento-client-core@6.10.0
│ ├── kurento-client-elements@6.6.1
│ ├── kurento-client-filters@6.6.1
│ ├─┬ kurento-jsonrpc@6.10.0
│ │ ├─┬ bufferutil@1.2.1
│ │ │ └── bindings@1.2.1
│ │ ├─┬ utf-8-validate@1.2.2
│ │ │ └── nan@2.4.0  <<< this uses 'ForceSet' that is not in newer Node.js

Is it possible to update kurento to use latest utf-8-validate (and nan)?

@micaelgallego

This comment has been minimized.

Copy link
Member

commented May 17, 2019

Can you prepare a Pull Request please?

@j1elo, can you take care of it?

@yonghongren

This comment has been minimized.

Copy link

commented May 18, 2019

@j1elo j1elo self-assigned this May 23, 2019

@j1elo j1elo added this to To do in Release 6.11 via automation May 23, 2019

@skgith1

This comment has been minimized.

Copy link

commented Jun 5, 2019

Same issue here I have been using:

https://github.com/a-sync/kurento-client-js
#260

@j1elo

This comment has been minimized.

Copy link
Member

commented Jul 22, 2019

Fixed in commits Kurento/kurento-jsonrpc-js@2f9c17b, Kurento/kurento-jsonrpc-js@4a633fd, after merging the changes suggested in several PRs.
Thanks!

@j1elo j1elo moved this from To do to Done in Release 6.11 Jul 22, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
6 participants
You can’t perform that action at this time.