menu

NodeGui

A library for building cross-platform native desktop applications with Node.js and CSS.

Channels
Team

NodeGUI watercooler

September 1, 2019 at 8:40am
Show previous messages

March 3, 2020 at 6:34pm
Hi Looks like you are using an alpha version of packer which is not yet released for public use. It is supposed to be used with next version of NodeGui. Can you try using 1.1.2 version of packer and let me know the result ?
  • reply
  • like
Hi Looks like you are using an alpha version of packer which is not yet released for public use. It is supposed to be used with next version of NodeGui. Can you try using 1.1.2 version of packer and let me know the result ?
Thanks!! It works! Now I can start develop my app!! You do project with fine performance!
  • reply
  • like

March 7, 2020 at 11:16pm
I ll take a look after work today. The issue is basically that QtMultimedia cant find headers. This is because current version of Qode doesnt ship with those. So to solve this there is Qode 2.0. I ll raise a PR to your repo in a day or two with changes and you can take a look at there.
Hi I have raised a PR to your repo. Please do have a look whenever you can.
  • reply
  • like

March 20, 2020 at 7:52pm
Hi everyone I have started a couple of projects with nodegui and everything works correctly with version 0.13.4 From March 14 onwards with version 0.16.0 and later I keep getting an npm ERR! Code ELIFECYCLE error when I run npm install
This also happens by running npm install in the nodegui-starter repository instead of in my projects
I have already tried to delete the whole node_modules folder and run npm cache clean --force, but the problem has not been solved
I am on ubuntu 18.04 npm 6.13.4 node v12.16.1 cmake 3.16.5
I attach the output of the problem
> @nodegui/[email protected] prebuild:install /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui
> prebuild-install --backend=cmake-js --runtime=napi --verbose
prebuild-install info begin Prebuild-install version 5.3.3
prebuild-install info looking for cached prebuild @ /home/USER/.npm/_prebuilds/deb586-nodegui-v0.16.1-napi-v3-linux-x64.tar.gz
prebuild-install http request GET https://github.com/nodegui/nodegui/releases/download/v0.16.1/nodegui-v0.16.1-napi-v3-linux-x64.tar.gz
prebuild-install http 404 https://github.com/nodegui/nodegui/releases/download/v0.16.1/nodegui-v0.16.1-napi-v3-linux-x64.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=3 runtime=napi arch=x64 libc= platform=linux)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nodegui/[email protected] prebuild:install: `prebuild-install --backend=cmake-js --runtime=napi --verbose`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @nodegui/[email protected] prebuild:install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Edited
  • reply
  • like

March 21, 2020 at 10:59pm
Hi everyone I have started a couple of projects with nodegui and everything works correctly with version 0.13.4 From March 14 onwards with version 0.16.0 and later I keep getting an npm ERR! Code ELIFECYCLE error when I run npm install
This also happens by running npm install in the nodegui-starter repository instead of in my projects
I have already tried to delete the whole node_modules folder and run npm cache clean --force, but the problem has not been solved
I am on ubuntu 18.04 npm 6.13.4 node v12.16.1 cmake 3.16.5
I attach the output of the problem
> @nodegui/[email protected] prebuild:install /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui
> prebuild-install --backend=cmake-js --runtime=napi --verbose
prebuild-install info begin Prebuild-install version 5.3.3
prebuild-install info looking for cached prebuild @ /home/USER/.npm/_prebuilds/deb586-nodegui-v0.16.1-napi-v3-linux-x64.tar.gz
prebuild-install http request GET https://github.com/nodegui/nodegui/releases/download/v0.16.1/nodegui-v0.16.1-napi-v3-linux-x64.tar.gz
prebuild-install http 404 https://github.com/nodegui/nodegui/releases/download/v0.16.1/nodegui-v0.16.1-napi-v3-linux-x64.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=3 runtime=napi arch=x64 libc= platform=linux)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nodegui/[email protected] prebuild:install: `prebuild-install --backend=cmake-js --runtime=napi --verbose`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @nodegui/[email protected] prebuild:install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Hi This looks like only part of the entire install log. Could you post the entire log ? This just tells us that prebuilt binary failed to install.
We need to see more details. Also have you installed cmake on your system ?
  • reply
  • like
Hi This looks like only part of the entire install log. Could you post the entire log ? This just tells us that prebuilt binary failed to install.
We need to see more details. Also have you installed cmake on your system ?
yes, sorry, I had only posted that section of the log hoping that the error depended only on that '404' in 'prebuild install'
I can post the complete log but it is really long
If I run cmake --version I get an answer "cmake version 3.16.5" so I think it's installed correctly (I'm not a cmake expert)
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
> @nodegui/[email protected] postinstall /home/USER/git/nodegui-starter/node_modules/@nodegui/qode
> node install.js
Cached archive already exists at /home/USER/.cache/qode-nodejs/qode-linux-x64-v2.0.4.tar.gz. Skipping download....
Extracting /home/USER/.cache/qode-nodejs/qode-linux-x64-v2.0.4.tar.gz to /home/USER/git/nodegui-starter/node_modules/@nodegui/qode/binaries ...
Qode was setup successfully at : /home/USER/git/nodegui-starter/node_modules/@nodegui/qode/binaries
> @nodegui/[email protected] postinstall /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui
> cross-env npm run setupqt && (node ./scripts/skip.js || npm run prebuild:install || npm run build:addon)
> @nodegui/[email protected] setupqt /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui
> cross-env node ./scripts/setupMiniQt.js
Minimal Qt 5.14.1 setup:
Archive already exists at /home/USER/.cache/nodegui-mini-qt-nodejs/5.14.1-0-202001240953qtbase-Linux-RHEL_7_6-GCC-Linux-RHEL_7_6-X86_64.7z. Skipping download....
Extracting /home/USER/.cache/nodegui-mini-qt-nodejs/5.14.1-0-202001240953qtbase-Linux-RHEL_7_6-GCC-Linux-RHEL_7_6-X86_64.7z to /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/miniqt ...
Archive already exists at /home/USER/.cache/nodegui-mini-qt-nodejs/5.14.1-0-202001240953icu-linux-Rhel7.2-x64.7z. Skipping download....
Extracting /home/USER/.cache/nodegui-mini-qt-nodejs/5.14.1-0-202001240953icu-linux-Rhel7.2-x64.7z to /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/miniqt ...
Qt ICU for Minimal Qt: 5.14.1 installation was setup successfully. outDir: /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/miniqt
Qt Base for Minimal Qt: 5.14.1 installation was setup successfully. outDir: /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/miniqt
> @nodegui/[email protected] prebuild:install /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui
> prebuild-install --backend=cmake-js --runtime=napi --verbose
prebuild-install info begin Prebuild-install version 5.3.3
prebuild-install info looking for cached prebuild @ /home/USER/.npm/_prebuilds/deb586-nodegui-v0.16.1-napi-v3-linux-x64.tar.gz
prebuild-install http request GET https://github.com/nodegui/nodegui/releases/download/v0.16.1/nodegui-v0.16.1-napi-v3-linux-x64.tar.gz
prebuild-install http 404 https://github.com/nodegui/nodegui/releases/download/v0.16.1/nodegui-v0.16.1-napi-v3-linux-x64.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=3 runtime=napi arch=x64 libc= platform=linux)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nodegui/[email protected] prebuild:install: `prebuild-install --backend=cmake-js --runtime=napi --verbose`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @nodegui/[email protected] prebuild:install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /home/USER/.npm/_logs/2020-03-21T23_15_47_644Z-debug.log
> @nodegui/[email protected] build:addon /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui
> cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile
[
'/usr/bin/node',
'/home/USER/git/nodegui-starter/node_modules/.bin/cmake-js',
'compile'
]
info TOOL Using Unix Makefiles generator.
info CMD CONFIGURE
info RUN cmake "/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui" --no-warn-unused-cli -G"Unix Makefiles" -DCMAKE_JS_VERSION="6.1.0" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/build/Release" -DCMAKE_JS_INC="/home/USER/.cmake-js/node-x64/v12.16.1/include/node;/home/USER/git/nodegui-starter/node_modules/nan" -DCMAKE_JS_SRC="" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="12.16.1" -DNODE_ARCH="x64"
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using QT installation for nodegui_core QT_CMAKE_HOME_DIR:/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/gcc_64/lib/cmake/Qt5
CMake Error at miniqt/5.14.1/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:9 (message):
Failed to find "GL/gl.h" in "/usr/include/libdrm".
Call Stack (most recent call first):
miniqt/5.14.1/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:207 (include)
miniqt/5.14.1/gcc_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:100 (find_package)
miniqt/5.14.1/gcc_64/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package)
config/qt.cmake:23 (find_package)
CMakeLists.txt:164 (AddQtSupport)
-- Configuring incomplete, errors occurred!
See also "/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/build/CMakeFiles/CMakeOutput.log".
info REP Build has been failed, trying to do a full rebuild.
info CMD CLEAN
info RUN cmake -E remove_directory "/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/build"
info CMD CONFIGURE
info RUN cmake "/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui" --no-warn-unused-cli -G"Unix Makefiles" -DCMAKE_JS_VERSION="6.1.0" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/build/Release" -DCMAKE_JS_INC="/home/USER/.cmake-js/node-x64/v12.16.1/include/node;/home/USER/git/nodegui-starter/node_modules/nan" -DCMAKE_JS_SRC="" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="12.16.1" -DNODE_ARCH="x64"
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using QT installation for nodegui_core QT_CMAKE_HOME_DIR:/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/gcc_64/lib/cmake/Qt5
CMake Error at miniqt/5.14.1/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:9 (message):
Failed to find "GL/gl.h" in "/usr/include/libdrm".
Call Stack (most recent call first):
miniqt/5.14.1/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:207 (include)
miniqt/5.14.1/gcc_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:100 (find_package)
miniqt/5.14.1/gcc_64/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package)
config/qt.cmake:23 (find_package)
CMakeLists.txt:164 (AddQtSupport)
-- Configuring incomplete, errors occurred!
See also "/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/build/CMakeFiles/CMakeOutput.log".
ERR! OMG Process terminated: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nodegui/[email protected] build:addon: `cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @nodegui/[email protected] build:addon script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /home/USER/.npm/_logs/2020-03-21T23_15_50_550Z-debug.log
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.2.7 (node_modules/chokidar/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/fsevents/node_modules/abbrev):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/abbrev' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.abbrev.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/ansi-regex):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/ansi-regex' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.ansi-regex.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/aproba):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/aproba' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.aproba.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/balanced-match):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/balanced-match' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.balanced-match.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/chownr):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/chownr' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.chownr.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/code-point-at):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/code-point-at' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.code-point-at.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/concat-map):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/concat-map' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.concat-map.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/console-control-strings):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/console-control-strings' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.console-control-strings.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/core-util-is):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/core-util-is' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.core-util-is.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/deep-extend):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/deep-extend' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.deep-extend.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/delegates):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/delegates' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.delegates.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/detect-libc):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/detect-libc' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.detect-libc.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/fs.realpath):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/fs.realpath' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.fs.realpath.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/has-unicode):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/has-unicode' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.has-unicode.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/inherits):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/inherits' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.inherits.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/ini):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/ini' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.ini.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/isarray):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/isarray' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.isarray.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/minimist):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/minimist' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.minimist.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/ms):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/ms' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.ms.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/npm-normalize-package-bin):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/npm-normalize-package-bin' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.npm-normalize-package-bin.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/number-is-nan):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/number-is-nan' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.number-is-nan.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/object-assign):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/object-assign' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.object-assign.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/os-homedir):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/os-homedir' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.os-homedir.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/os-tmpdir):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/os-tmpdir' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.os-tmpdir.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/path-is-absolute):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/path-is-absolute' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.path-is-absolute.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/process-nextick-args):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/process-nextick-args' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.process-nextick-args.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/safe-buffer):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/safe-buffer' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.safe-buffer.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/safer-buffer):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/safer-buffer' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.safer-buffer.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/sax):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/sax' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.sax.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/semver):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/semver' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.semver.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/set-blocking):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/set-blocking' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.set-blocking.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/signal-exit):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/signal-exit' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.signal-exit.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/strip-json-comments):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/strip-json-comments' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.strip-json-comments.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/util-deprecate):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/util-deprecate' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.util-deprecate.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/wrappy):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/wrappy' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.wrappy.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/yallist):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/yallist' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.yallist.DELETE'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nodegui/[email protected] postinstall: `cross-env npm run setupqt && (node ./scripts/skip.js || npm run prebuild:install || npm run build:addon)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @nodegui/[email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
CONTENT OF "2020-03-21T23_15_47_644Z-debug.log" FILE
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'prebuild:install' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild:install' ]
5 info lifecycle @nodegui/[email protected]~prebuild:install: @nodegui/[email protected]
6 verbose lifecycle @nodegui/[email protected]~prebuild:install: unsafe-perm in lifecycle true
7 verbose lifecycle @nodegui/[email protected]~prebuild:install: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/node_modules/.bin:/home/USER/git/nodegui-starter/node_modules/.bin:/usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/node_modules/.bin:/home/USER/git/nodegui-starter/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
8 verbose lifecycle @nodegui/[email protected]~prebuild:install: CWD: /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui
9 silly lifecycle @nodegui/[email protected]~prebuild:install: Args: [
9 silly lifecycle '-c',
9 silly lifecycle 'prebuild-install --backend=cmake-js --runtime=napi --verbose'
9 silly lifecycle ]
10 silly lifecycle @nodegui/[email protected]~prebuild:install: Returned: code: 1 signal: null
11 info lifecycle @nodegui/[email protected]~prebuild:install: Failed to exec prebuild:install script
12 verbose stack Error: @nodegui/[email protected] prebuild:install: `prebuild-install --backend=cmake-js --runtime=napi --verbose`
12 verbose stack Exit status 1
12 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
12 verbose stack at EventEmitter.emit (events.js:311:20)
12 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
12 verbose stack at ChildProcess.emit (events.js:311:20)
12 verbose stack at maybeClose (internal/child_process.js:1021:16)
12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
13 verbose pkgid @nodegui/[email protected]
14 verbose cwd /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui
15 verbose Linux 5.3.0-42-generic
16 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "prebuild:install"
17 verbose node v12.16.1
18 verbose npm v6.13.4
19 error code ELIFECYCLE
20 error errno 1
21 error @nodegui/[email protected] prebuild:install: `prebuild-install --backend=cmake-js --runtime=napi --verbose`
21 error Exit status 1
22 error Failed at the @nodegui/[email protected] prebuild:install script.
22 error This is probably not a problem with npm. There is likely additional logging output above.
Edited
  • reply
  • like
yes, sorry, I had only posted that section of the log hoping that the error depended only on that '404' in 'prebuild install'
I can post the complete log but it is really long
If I run cmake --version I get an answer "cmake version 3.16.5" so I think it's installed correctly (I'm not a cmake expert)
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
> @nodegui/[email protected] postinstall /home/USER/git/nodegui-starter/node_modules/@nodegui/qode
> node install.js
Cached archive already exists at /home/USER/.cache/qode-nodejs/qode-linux-x64-v2.0.4.tar.gz. Skipping download....
Extracting /home/USER/.cache/qode-nodejs/qode-linux-x64-v2.0.4.tar.gz to /home/USER/git/nodegui-starter/node_modules/@nodegui/qode/binaries ...
Qode was setup successfully at : /home/USER/git/nodegui-starter/node_modules/@nodegui/qode/binaries
> @nodegui/[email protected] postinstall /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui
> cross-env npm run setupqt && (node ./scripts/skip.js || npm run prebuild:install || npm run build:addon)
> @nodegui/[email protected] setupqt /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui
> cross-env node ./scripts/setupMiniQt.js
Minimal Qt 5.14.1 setup:
Archive already exists at /home/USER/.cache/nodegui-mini-qt-nodejs/5.14.1-0-202001240953qtbase-Linux-RHEL_7_6-GCC-Linux-RHEL_7_6-X86_64.7z. Skipping download....
Extracting /home/USER/.cache/nodegui-mini-qt-nodejs/5.14.1-0-202001240953qtbase-Linux-RHEL_7_6-GCC-Linux-RHEL_7_6-X86_64.7z to /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/miniqt ...
Archive already exists at /home/USER/.cache/nodegui-mini-qt-nodejs/5.14.1-0-202001240953icu-linux-Rhel7.2-x64.7z. Skipping download....
Extracting /home/USER/.cache/nodegui-mini-qt-nodejs/5.14.1-0-202001240953icu-linux-Rhel7.2-x64.7z to /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/miniqt ...
Qt ICU for Minimal Qt: 5.14.1 installation was setup successfully. outDir: /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/miniqt
Qt Base for Minimal Qt: 5.14.1 installation was setup successfully. outDir: /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/miniqt
> @nodegui/[email protected] prebuild:install /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui
> prebuild-install --backend=cmake-js --runtime=napi --verbose
prebuild-install info begin Prebuild-install version 5.3.3
prebuild-install info looking for cached prebuild @ /home/USER/.npm/_prebuilds/deb586-nodegui-v0.16.1-napi-v3-linux-x64.tar.gz
prebuild-install http request GET https://github.com/nodegui/nodegui/releases/download/v0.16.1/nodegui-v0.16.1-napi-v3-linux-x64.tar.gz
prebuild-install http 404 https://github.com/nodegui/nodegui/releases/download/v0.16.1/nodegui-v0.16.1-napi-v3-linux-x64.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=3 runtime=napi arch=x64 libc= platform=linux)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nodegui/[email protected] prebuild:install: `prebuild-install --backend=cmake-js --runtime=napi --verbose`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @nodegui/[email protected] prebuild:install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /home/USER/.npm/_logs/2020-03-21T23_15_47_644Z-debug.log
> @nodegui/[email protected] build:addon /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui
> cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile
[
'/usr/bin/node',
'/home/USER/git/nodegui-starter/node_modules/.bin/cmake-js',
'compile'
]
info TOOL Using Unix Makefiles generator.
info CMD CONFIGURE
info RUN cmake "/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui" --no-warn-unused-cli -G"Unix Makefiles" -DCMAKE_JS_VERSION="6.1.0" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/build/Release" -DCMAKE_JS_INC="/home/USER/.cmake-js/node-x64/v12.16.1/include/node;/home/USER/git/nodegui-starter/node_modules/nan" -DCMAKE_JS_SRC="" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="12.16.1" -DNODE_ARCH="x64"
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using QT installation for nodegui_core QT_CMAKE_HOME_DIR:/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/gcc_64/lib/cmake/Qt5
CMake Error at miniqt/5.14.1/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:9 (message):
Failed to find "GL/gl.h" in "/usr/include/libdrm".
Call Stack (most recent call first):
miniqt/5.14.1/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:207 (include)
miniqt/5.14.1/gcc_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:100 (find_package)
miniqt/5.14.1/gcc_64/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package)
config/qt.cmake:23 (find_package)
CMakeLists.txt:164 (AddQtSupport)
-- Configuring incomplete, errors occurred!
See also "/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/build/CMakeFiles/CMakeOutput.log".
info REP Build has been failed, trying to do a full rebuild.
info CMD CLEAN
info RUN cmake -E remove_directory "/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/build"
info CMD CONFIGURE
info RUN cmake "/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui" --no-warn-unused-cli -G"Unix Makefiles" -DCMAKE_JS_VERSION="6.1.0" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/build/Release" -DCMAKE_JS_INC="/home/USER/.cmake-js/node-x64/v12.16.1/include/node;/home/USER/git/nodegui-starter/node_modules/nan" -DCMAKE_JS_SRC="" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="12.16.1" -DNODE_ARCH="x64"
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using QT installation for nodegui_core QT_CMAKE_HOME_DIR:/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/miniqt/5.14.1/gcc_64/lib/cmake/Qt5
CMake Error at miniqt/5.14.1/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfigExtras.cmake:9 (message):
Failed to find "GL/gl.h" in "/usr/include/libdrm".
Call Stack (most recent call first):
miniqt/5.14.1/gcc_64/lib/cmake/Qt5Gui/Qt5GuiConfig.cmake:207 (include)
miniqt/5.14.1/gcc_64/lib/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:100 (find_package)
miniqt/5.14.1/gcc_64/lib/cmake/Qt5/Qt5Config.cmake:28 (find_package)
config/qt.cmake:23 (find_package)
CMakeLists.txt:164 (AddQtSupport)
-- Configuring incomplete, errors occurred!
See also "/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/build/CMakeFiles/CMakeOutput.log".
ERR! OMG Process terminated: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nodegui/[email protected] build:addon: `cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @nodegui/[email protected] build:addon script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /home/USER/.npm/_logs/2020-03-21T23_15_50_550Z-debug.log
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]^1.2.7 (node_modules/chokidar/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/fsevents/node_modules/abbrev):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/abbrev' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.abbrev.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/ansi-regex):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/ansi-regex' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.ansi-regex.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/aproba):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/aproba' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.aproba.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/balanced-match):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/balanced-match' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.balanced-match.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/chownr):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/chownr' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.chownr.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/code-point-at):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/code-point-at' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.code-point-at.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/concat-map):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/concat-map' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.concat-map.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/console-control-strings):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/console-control-strings' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.console-control-strings.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/core-util-is):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/core-util-is' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.core-util-is.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/deep-extend):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/deep-extend' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.deep-extend.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/delegates):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/delegates' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.delegates.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/detect-libc):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/detect-libc' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.detect-libc.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/fs.realpath):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/fs.realpath' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.fs.realpath.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/has-unicode):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/has-unicode' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.has-unicode.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/inherits):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/inherits' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.inherits.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/ini):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/ini' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.ini.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/isarray):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/isarray' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.isarray.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/minimist):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/minimist' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.minimist.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/ms):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/ms' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.ms.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/npm-normalize-package-bin):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/npm-normalize-package-bin' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.npm-normalize-package-bin.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/number-is-nan):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/number-is-nan' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.number-is-nan.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/object-assign):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/object-assign' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.object-assign.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/os-homedir):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/os-homedir' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.os-homedir.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/os-tmpdir):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/os-tmpdir' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.os-tmpdir.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/path-is-absolute):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/path-is-absolute' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.path-is-absolute.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/process-nextick-args):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/process-nextick-args' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.process-nextick-args.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/safe-buffer):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/safe-buffer' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.safe-buffer.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/safer-buffer):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/safer-buffer' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.safer-buffer.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/sax):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/sax' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.sax.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/semver):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/semver' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.semver.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/set-blocking):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/set-blocking' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.set-blocking.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/signal-exit):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/signal-exit' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.signal-exit.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/strip-json-comments):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/strip-json-comments' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.strip-json-comments.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/util-deprecate):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/util-deprecate' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.util-deprecate.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/wrappy):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/wrappy' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.wrappy.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents/node_modules/yallist):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/yallist' -> '/home/USER/git/nodegui-starter/node_modules/fsevents/node_modules/.yallist.DELETE'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nodegui/[email protected] postinstall: `cross-env npm run setupqt && (node ./scripts/skip.js || npm run prebuild:install || npm run build:addon)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @nodegui/[email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
CONTENT OF "2020-03-21T23_15_47_644Z-debug.log" FILE
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'prebuild:install' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild:install' ]
5 info lifecycle @nodegui/[email protected]~prebuild:install: @nodegui/[email protected]
6 verbose lifecycle @nodegui/[email protected]~prebuild:install: unsafe-perm in lifecycle true
7 verbose lifecycle @nodegui/[email protected]~prebuild:install: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/node_modules/.bin:/home/USER/git/nodegui-starter/node_modules/.bin:/usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui/node_modules/.bin:/home/USER/git/nodegui-starter/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
8 verbose lifecycle @nodegui/[email protected]~prebuild:install: CWD: /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui
9 silly lifecycle @nodegui/[email protected]~prebuild:install: Args: [
9 silly lifecycle '-c',
9 silly lifecycle 'prebuild-install --backend=cmake-js --runtime=napi --verbose'
9 silly lifecycle ]
10 silly lifecycle @nodegui/[email protected]~prebuild:install: Returned: code: 1 signal: null
11 info lifecycle @nodegui/[email protected]~prebuild:install: Failed to exec prebuild:install script
12 verbose stack Error: @nodegui/[email protected] prebuild:install: `prebuild-install --backend=cmake-js --runtime=napi --verbose`
12 verbose stack Exit status 1
12 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
12 verbose stack at EventEmitter.emit (events.js:311:20)
12 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
12 verbose stack at ChildProcess.emit (events.js:311:20)
12 verbose stack at maybeClose (internal/child_process.js:1021:16)
12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
13 verbose pkgid @nodegui/[email protected]
14 verbose cwd /home/USER/git/nodegui-starter/node_modules/@nodegui/nodegui
15 verbose Linux 5.3.0-42-generic
16 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "prebuild:install"
17 verbose node v12.16.1
18 verbose npm v6.13.4
19 error code ELIFECYCLE
20 error errno 1
21 error @nodegui/[email protected] prebuild:install: `prebuild-install --backend=cmake-js --runtime=napi --verbose`
21 error Exit status 1
22 error Failed at the @nodegui/[email protected] prebuild:install script.
22 error This is probably not a problem with npm. There is likely additional logging output above.
Got it! Thanks for the logs The issue is here: Failed to find "GL/gl.h" in "/usr/include/libdrm" Since 5.14 version of Qt i think in linux we need additional dependency You could try installing sudo apt install mesa-common-dev libglu1-mesa-dev and then run the build again
Edited
  • reply
  • like

March 22, 2020 at 5:37pm
Got it! Thanks for the logs The issue is here: Failed to find "GL/gl.h" in "/usr/include/libdrm" Since 5.14 version of Qt i think in linux we need additional dependency You could try installing sudo apt install mesa-common-dev libglu1-mesa-dev and then run the build again
I did it and it works thank you!
like-fill
1
  • reply
  • like

April 5, 2020 at 1:09pm
Got it! Thanks for the logs The issue is here: Failed to find "GL/gl.h" in "/usr/include/libdrm" Since 5.14 version of Qt i think in linux we need additional dependency You could try installing sudo apt install mesa-common-dev libglu1-mesa-dev and then run the build again
Could you add this step in docs as well? I faced this issue too, and it was hard to find this solution :P
  • reply
  • like

April 13, 2020 at 11:04am
Hello there! Thanks for this awesome project.
Is there any way to use a canvas-like api with node-gui?
  • reply
  • like
I know that this is mentioned in #11, but I was just wondering if there was any workaround that you know of.
  • reply
  • like
Some possibilities I considered are:
  • Using node-canvas in conjunction with node-gui
  • Using any native widgets that are canvas-like with node-gui
  • reply
  • like
Will those work?
  • reply
  • like
If so, how do I get it to do so?
  • reply
  • like
And if not, are there any other ways to get a canvas-like api into my nodegui app?
Edited
  • reply
  • like
If so, how do I get it to do so?
This is pretty interesting. I didnt know about node-canvas before. I will need to take a look at it to see if its possible to integrate it. But looks like we can do it.
Similar to those examples. A quick way would be to use the node-canvas api to generate a image url from the canvas and set it to QLabel.
  • reply
  • like
A quick way would be to use the node-canvas api to generate a image url from the canvas and set it to QLabel.
That is a good idea. I will try it out.
Edited
  • reply
  • like
Good luck on your efforts integrating node-canvas :)
  • reply
  • like
And thanks for taking the time to work on this project
  • reply
  • like
I lot of devs like me really appreciate it.
  • reply
  • like

May 8, 2020 at 3:17pm
hi , may I ask why there is no className props for react-nodegui? I'm just curious about it. Thanks!
  • reply
  • like
hi , may I ask why there is no className props for react-nodegui? I'm just curious about it. Thanks!
Hi To understand why there is no className we have to understand that React NodeGui doesnt run inside a browser. The css and elements you see are actually native widget api. The css spec is provided by Qt which supports styling using something they call as ObjectName. An objectName is a somewhat unique name you assign to each widget you create in qt so that you can style them separately. This concept of objectName is what is exposed as id in react nodegui.
But since qt does support assigning same objectName to multiple widgets. You can essentially assign same id to multiple widgets and style them all together (which is somewhat similar to that of className`
  • reply
  • like

June 18, 2020 at 11:59am
Hi, is it possible to remove a cancel button from a QProgressDialog? Normally it could be done with setCancelButton(null) but there is no method like that
  • reply
  • like

August 1, 2020 at 2:07am
Hi To understand why there is no className we have to understand that React NodeGui doesnt run inside a browser. The css and elements you see are actually native widget api. The css spec is provided by Qt which supports styling using something they call as ObjectName. An objectName is a somewhat unique name you assign to each widget you create in qt so that you can style them separately. This concept of objectName is what is exposed as id in react nodegui.
But since qt does support assigning same objectName to multiple widgets. You can essentially assign same id to multiple widgets and style them all together (which is somewhat similar to that of className`
so multiple widgets can have the same object name, but can a widget have multiple object names?
  • reply
  • like

August 10, 2020 at 10:39pm
Hello goodday! I'm enjoying nodeGUI. I was wondering how to access this from an <Button on={buttonHandler}>Click me</Button> call to buttonHandler = { clicked: () => { } } as per https://react.nodegui.org/docs/guides/handle-events except I'm using a class component and I would like this for setState
  • reply
  • like