nodegui/react-nodegui-starter

Error while trying to install dependencies using yarn or npm

p32929 opened this issue · 7 comments

It shows this error:

$ yarn
yarn install v1.22.4
info No lockfile found.
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in
 order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
warning @nodegui/react-nodegui > @nodegui/nodegui > cmake-js > request@2.88.2: request has been deprecated, see https://github.com/request/request
/issues/3142
warning webpack > watchpack > watchpack-chokidar2 > chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less depend
encies.
warning webpack > watchpack > watchpack-chokidar2 > chokidar > fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure bin
aries. Upgrade to fsevents 2.
warning webpack > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning webpack > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
aries. Upgrade to fsevents 2.
warning webpack > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning webpack > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
[2/4] Fetching packages...
info fsevents@2.1.3: The platform "win32" is incompatible with this module.
info "fsevents@2.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "win32" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @nodegui/packer@1.4.1" has unmet peer dependency "@nodegui/nodegui@>=0.15.0".
[4/4] Building fresh packages...
[3/3] ⡀ @nodegui/nodegui
[-/3] ⡀ waiting...
error D:\SourceCodes\ReactNodeGUI\react-nodegui-starter\node_modules\@nodegui\nodegui: Command failed.
Exit code: 1
Command: cross-env npm run setupqt && (node ./scripts/skip.js || npm run prebuild:install || npm run build:addon)
Arguments:
Directory: D:\SourceCodes\ReactNodeGUI\react-nodegui-starter\node_modules\@nodegui\nodegui
Output:
> @nodegui/nodegui@0.22.0 setupqt D:\SourceCodes\ReactNodeGUI\react-nodegui-starter\node_modules\@nodegui\nodegui
> cross-env node ./scripts/setupMiniQt.js

Minimal Qt 5.14.1 setup:
Archive already exists at C:\Users\p32929\AppData\Local\nodegui-mini-qt-nodejs\Cache\5.14.1-0-202001240957qttools-Windows-Windows_10-MSVC2017-Wind
ows-Windows_10-X86_64.7z. Skipping download....
Extracting C:\Users\p32929\AppData\Local\nodegui-mini-qt-nodejs\Cache\5.14.1-0-202001240957qttools-Windows-Windows_10-MSVC2017-Windows-Windows_10-
X86_64.7z to D:\SourceCodes\ReactNodeGUI\react-nodegui-starter\node_modules\@nodegui\nodegui\miniqt ...
Archive already exists at C:\Users\p32929\AppData\Local\nodegui-mini-qt-nodejs\Cache\5.14.1-0-202001240957qtbase-Windows-Windows_10-MSVC2017-Windo
ws-Windows_10-X86_64.7z. Skipping download....
Extracting C:\Users\p32929\AppData\Local\nodegui-mini-qt-nodejs\Cache\5.14.1-0-202001240957qtbase-Windows-Windows_10-MSVC2017-Windows-Windows_10-X
86_64.7z to D:\SourceCodes\ReactNodeGUI\react-nodegui-starter\node_modules\@nodegui\nodegui\miniqt ...
Qt Tools for Minimal Qt: 5.14.1 installation was setup successfully.  outDir: D:\SourceCodes\ReactNodeGUI\react-nodegui-starter\node_modules\@node
gui\nodegui\miniqt
Qt Base for Minimal Qt: 5.14.1 installation was setup successfully.  outDir: D:\SourceCodes\ReactNodeGUI\react-nodegui-starter\node_modules\@nodeg
ui\nodegui\miniqt

> @nodegui/nodegui@0.22.0 prebuild:install D:\SourceCodes\ReactNodeGUI\react-nodegui-starter\node_modules\@nodegui\nodegui
> prebuild-install --backend=cmake-js --runtime=napi --verbose

prebuild-install info begin Prebuild-install version 5.3.4
prebuild-install info looking for cached prebuild @ C:\Users\p32929\AppData\Roaming\npm-cache\_prebuilds\e5c5c6-nodegui-v0.22.0-napi-v3-win32-x64.
tar.gz
prebuild-install http request GET https://github.com/nodegui/nodegui/releases/download/v0.22.0/nodegui-v0.22.0-napi-v3-win32-x64.tar.gz
prebuild-install http 404 https://github.com/nodegui/nodegui/releases/download/v0.22.0/nodegui-v0.22.0-napi-v3-win32-x64.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=3 runtime=napi arch=x64 libc= platform=win32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nodegui/nodegui@0.22.0 prebuild:install: `prebuild-install --backend=cmake-js --runtime=napi --verbose`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @nodegui/nodegui@0.22.0 prebuild:install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\p32929\AppData\Roaming\npm-cache\_logs\2020-06-16T17_40_16_490Z-debug.log

> @nodegui/nodegui@0.22.0 build:addon D:\SourceCodes\ReactNodeGUI\react-nodegui-starter\node_modules\@nodegui\nodegui
> cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile

[
  'C:\\Program Files\\nodejs\\node.exe',
  'D:\\SourceCodes\\ReactNodeGUI\\react-nodegui-starter\\node_modules\\cmake-js\\bin\\cmake-js',
  'compile'
]
ERR! OMG CMake is not installed. Install CMake.
ERR! OMG CMake is not installed. Install CMake.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nodegui/nodegui@0.22.0 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/nodegui@0.22.0 build:addon script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

Anything I can do to fix it?

I'm using Windows 10

a7ul commented
ERR! OMG CMake is not installed. Install CMake.
ERR! OMG CMake is not installed. Install CMake.

Please install cmake

Also follow this guide for more details: https://react.nodegui.org/docs/guides/getting-started#setting-up-on-windows

Sorry sorry, I mistakenly sent you previous error. The error is actually this:

$ qode --inspect ./dist/index.js
'qode' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this comm
and.

a7ul commented

Yes, you need to do yarn qode --inspect ./dist/index.js instead.

Okay, thanks :)

One last question: Which of these should be installed?
The doc said only to install Visual Studio. So, none of these are needed?

Screenshot (48)

a7ul commented

Desktop development with C++ workload

Thanks man! Really appreciate... :)