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

Error While executing npm install #218

Open
haroldb2 opened this issue Nov 23, 2020 · 4 comments
Open

Error While executing npm install #218

haroldb2 opened this issue Nov 23, 2020 · 4 comments

Comments

@haroldb2
Copy link

Hello i was trying to install the npm but there was an error during the installation, attached are the log for the review of the problem

image
image

2020-11-23T17_18_16_671Z-debug.log
2020-11-23T17_18_52_310Z-debug.log
2020-11-23T17_18_58_459Z-debug.log

@cocodrino
Copy link

I get a similar error in macOS, I previously installed CMake

➜  react-nodegui-starter git:(master) yarn
yarn install v1.21.1
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 > [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
warning @nodegui/react-nodegui > @nodegui/nodegui > cmake-js > request > [email protected]: this library is no longer supported
warning webpack > watchpack > watchpack-chokidar2 > [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning webpack > watchpack > chokidar > [email protected]: Please update to v 2.2.x
warning webpack > watchpack > watchpack-chokidar2 > chokidar > [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning webpack > micromatch > snapdragon > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
warning webpack > micromatch > snapdragon > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning " > @nodegui/[email protected]" has unmet peer dependency "@nodegui/nodegui@>=0.15.0".
[4/4] 🔨  Building fresh packages...
[4/4] ⠠ @nodegui/nodegui
[-/4] ⠠ waiting...
[3/4] ⠠ fsevents
error /Users/Admin/Downloads/proj/avanti/nodegui/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: /Users/Admin/Downloads/proj/avanti/nodegui/react-nodegui-starter/node_modules/@nodegui/nodegui
Output:
> @nodegui/[email protected] setupqt /Users/Admin/Downloads/proj/avanti/nodegui/react-nodegui-starter/node_modules/@nodegui/nodegui
> cross-env node ./scripts/setupMiniQt.js

Minimal Qt 5.14.1 setup:
Archive already exists at /Users/Admin/Library/Caches/nodegui-mini-qt-nodejs/5.14.1-0-202001241000qtbase-MacOS-MacOS_10_13-Clang-MacOS-MacOS_10_13-X86_64.7z. Skipping download....
Extracting /Users/Admin/Library/Caches/nodegui-mini-qt-nodejs/5.14.1-0-202001241000qtbase-MacOS-MacOS_10_13-Clang-MacOS-MacOS_10_13-X86_64.7z to /Users/Admin/Downloads/proj/avanti/nodegui/react-nodegui-starter/node_modules/@nodegui/nodegui/miniqt ...
Archive already exists at /Users/Admin/Library/Caches/nodegui-mini-qt-nodejs/5.14.1-0-202001241000qttools-MacOS-MacOS_10_13-Clang-MacOS-MacOS_10_13-X86_64.7z. Skipping download....
Extracting /Users/Admin/Library/Caches/nodegui-mini-qt-nodejs/5.14.1-0-202001241000qttools-MacOS-MacOS_10_13-Clang-MacOS-MacOS_10_13-X86_64.7z to /Users/Admin/Downloads/proj/avanti/nodegui/react-nodegui-starter/node_modules/@nodegui/nodegui/miniqt ...
Error: Exited with code 2
    at ChildProcess.<anonymous> (/Users/Admin/Downloads/proj/avanti/nodegui/react-nodegui-starter/node_modules/7zip-min/index.js:64:19)
    at ChildProcess.emit (events.js:210:5)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nodegui/[email protected] setupqt: `cross-env node ./scripts/setupMiniQt.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @nodegui/[email protected] setupqt script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


@a7ul
Copy link
Collaborator

a7ul commented Dec 23, 2020

@cocodrino for your case, it seems like the zip file downloaded for qt was corrupt so 7zip failed to extract it.

Can you do

rm -rf /Users/Admin/Library/Caches/nodegui*
and rm -rf node_modules

then do npm install

@a7ul
Copy link
Collaborator

a7ul commented Dec 23, 2020

@haroldb2 the error mentions that cmake cant find your visual studio 2019 instance.

@blessdarah
Copy link

I also have this same error on windows. I am stuck and don't know what to do.
I would have loved to test and work on it.

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

4 participants