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

It cannot be installed. #209

Open
evtunit opened this issue May 3, 2021 · 5 comments
Open

It cannot be installed. #209

evtunit opened this issue May 3, 2021 · 5 comments

Comments

@evtunit
Copy link

evtunit commented May 3, 2021

`

PS D:\nodegui> git clone https://github.com/nodegui/nodegui-starter
Cloning into 'nodegui-starter'...
remote: Enumerating objects: 376, done.
remote: Counting objects: 100% (35/35), done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 376 (delta 24), reused 7 (delta 3), pack-reused 341
Receiving objects: 100% (376/376), 398.23 KiB | 8.30 MiB/s, done.
Resolving deltas: 100% (257/257), done.
PS D:\nodegui> cd nodegui-starter
PS D:\nodegui\nodegui-starter> npm install

@nodegui/[email protected] postinstall D:\nodegui\nodegui-starter\node_modules@nodegui\qode
node install.js

Cached archive already exists at C:\Users\109\AppData\Local\qode-nodejs\Cache\qode-win32-x64-v2.1.0.tar.gz. Skipping download....
Extracting C:\Users\109\AppData\Local\qode-nodejs\Cache\qode-win32-x64-v2.1.0.tar.gz to D:\nodegui\nodegui-starter\node_modules@nodegui\qode\binaries ...
Qode was setup successfully at : D:\nodegui\nodegui-starter\node_modules@nodegui\qode\binaries

@nodegui/[email protected] postinstall D:\nodegui\nodegui-starter\node_modules@nodegui\nodegui
cross-env npm run setupqt && (node ./scripts/skip.js || npm run build:addon)

@nodegui/[email protected] setupqt D:\nodegui\nodegui-starter\node_modules@nodegui\nodegui
cross-env node ./scripts/setupMiniQt.js

Minimal Qt 5.14.1 setup:
Archive already exists at C:\Users\109\AppData\Local\nodegui-mini-qt-nodejs\Cache\5.14.1-0-202001240957qtbase-Windows-Windows_10-MSVC2017-Windows-Windows_10-X86_64.7z. Skipping download....
Extracting C:\Users\109\AppData\Local\nodegui-mini-qt-nodejs\Cache\5.14.1-0-202001240957qtbase-Windows-Windows_10-MSVC2017-Windows-Windows_10-X86_64.7z to D:\nodegui\nodegui-starter\node_modules@nodegui\nodegui\miniqt ...
Archive already exists at C:\Users\109\AppData\Local\nodegui-mini-qt-nodejs\Cache\5.14.1-0-202001240957qttools-Windows-Windows_10-MSVC2017-Windows-Windows_10-X86_64.7z. Skipping download....
Extracting C:\Users\109\AppData\Local\nodegui-mini-qt-nodejs\Cache\5.14.1-0-202001240957qttools-Windows-Windows_10-MSVC2017-Windows-Windows_10-X86_64.7z to D:\nodegui\nodegui-starter\node_modules@nodegui\nodegui\miniqt ...
Archive already exists at C:\Users\109\AppData\Local\nodegui-mini-qt-nodejs\Cache\5.14.1-0-202001240957qtsvg-Windows-Windows_10-MSVC2017-Windows-Windows_10-X86_64.7z. Skipping download....
Extracting C:\Users\109\AppData\Local\nodegui-mini-qt-nodejs\Cache\5.14.1-0-202001240957qtsvg-Windows-Windows_10-MSVC2017-Windows-Windows_10-X86_64.7z to D:\nodegui\nodegui-starter\node_modules@nodegui\nodegui\miniqt ...
Qt SVG for Minimal Qt: 5.14.1 installation was setup successfully. outDir: D:\nodegui\nodegui-starter\node_modules@nodegui\nodegui\miniqt
Qt Tools for Minimal Qt: 5.14.1 installation was setup successfully. outDir: D:\nodegui\nodegui-starter\node_modules@nodegui\nodegui\miniqt
Qt Base for Minimal Qt: 5.14.1 installation was setup successfully. outDir: D:\nodegui\nodegui-starter\node_modules@nodegui\nodegui\miniqt

@nodegui/[email protected] build:addon D:\nodegui\nodegui-starter\node_modules@nodegui\nodegui
cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile

[
'C:\Program Files\nodejs\node.exe',
'D:\nodegui\nodegui-starter\node_modules\cmake-js\bin\cmake-js',
'compile'
]
ERR! OMG Cannot read property 'verbose' of undefined
ERR! OMG Cannot read property 'verbose' of undefined
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! C:\Users\109\AppData\Roaming\npm-cache_logs\2021-05-03T07_09_31_669Z-debug.log
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 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.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\109\AppData\Roaming\npm-cache_logs\2021-05-03T07_09_35_270Z-debug.log

PS D:\nodegui\nodegui-starter> node -v
v14.15.1
PS D:\nodegui\nodegui-starter> npm -v
6.14.8
PS D:\nodegui\nodegui-starter> cmake --version
cmake version 3.5.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).

`

I want to try it, but it's too difficult. I definitely want to try it.
Give me a hint!

window 10 Pro x64
Visual Studio 2019

2021-05-03T07_09_35_270Z-debug.log
2021-05-03T07_09_31_669Z-debug.log

@Mishci
Copy link

Mishci commented May 3, 2021

which editor do you use? try vs community IDE. it worked for me and all the bugs got done. try it and report here.

@evtunit
Copy link
Author

evtunit commented May 3, 2021

which editor do you use? try vs community IDE. it worked for me and all the bugs got done. try it and report here.

The editor used Windows PowerShell.

Even using the vs community IDE, I couldn't build it because it couldn't be installed.
It's too difficult.

@Mishci
Copy link

Mishci commented May 3, 2021

worked for me. tha classical vs code does not recognize cmake installed. but the vs community ide has no problem with it. it maked smake bugs on vscode but not in vs community IDE - dont use editors, use IDE. and maybe try thr react version

@evtunit
Copy link
Author

evtunit commented May 4, 2021

There seems to be a problem with the network or with the environment.
I can hardly know. It's a pity. T^T

@milahu
Copy link

milahu commented Sep 18, 2021

ERR! OMG Cannot read property 'verbose' of undefined

its also a bug in cmake-js, this.log is undefined

// node_modules/cmake-js/lib/buildSystem.js
BuildSystem.prototype._showError = function (e) {
    if (this.log.level === "verbose" || this.log.level === "silly") {
        this.log.error("OMG", e.stack);
    }
    else {
        this.log.error("OMG", e.message);
    }
};

as workaround, add console.dir(e) before the if

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants