I'm trying to install nodegui following their docs, but seems it can't find Cmake even if I already installed it (and visual studio 2019 too). This is the error:
> cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile
[
'C:\\Program Files\\nodejs\\node.exe',
'C:\\Users\\giova\\Coding projects\\Node_Gui\\Tutorial_1\\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.36.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.36.0 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\giova\AppData\Roaming\npm-cache\_logs\2021-10-15T06_47_38_675Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! #nodegui/nodegui#0.36.0 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/nodegui#0.36.0 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\giova\AppData\Roaming\npm-cache\_logs\2021-10-15T06_47_39_666Z-debug.log
I think I solved the issue by adding C:\Program Files\CMake\bin to the PATH enviroment variable, like here: https://www.youtube.com/watch?v=8_X5Iq9niDE.
I'm not 100% sure this is the actual solution because I tried random things before that, but probably it's the right way.
I had the same problem, and installed this package globally: https://www.npmjs.com/package/cmake-js
npm i -g cmake-js
npm i on the NodeGui install
This got me beyond the cmake problem.
Related
We currently do sudo npm i instead of npm i to circumvent this issue. Our Ubuntu team members can't do this however because nvm isn't installed for root. NVM and N both have this same issue.
geoyws-mbp:ifca-construction-react geoyws$ npm i
> ifca-construction-react#0.1.0 prepare /Users/geoyws/work/src/ifca/ifca-react/src/modules/ifca-construction-react
> npm.cmd run compile
sh: npm.cmd: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! ifca-construction-react#0.1.0 prepare: `npm.cmd run compile`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the ifca-construction-react#0.1.0 prepare 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! /Users/geoyws/.npm/_logs/2019-10-03T09_40_46_545Z-debug.log
The problem was that one of our engineers changed our npm start script from npm run compile to npm.cmd run compile in our package.json. Either that or create-react-app did that, which is very unwise because people work with various OSes on the same codebase.
Hello I'm currently learning hyperledger composer but I reinstalled it and i'm installing it again. Now when I npm install, I get the error below. If anyone can help me out that would be great.
➜ Dabbous-Innopay npm install
> fabric-dev-servers#0.0.14 prepare /Users/alydabbous/code/Dabbous-Innopay
> npm run build-archives
> fabric-dev-servers#0.0.14 build-archives /Users/alydabbous/code/Dabbous-Innopay
> gulp --gulpfile .travis/gulp.js
[16:45:08] No gulpfile found
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fabric-dev-servers#0.0.14 build-archives: `gulp --gulpfile .travis/gulp.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fabric-dev-servers#0.0.14 build-archives 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! /Users/alydabbous/.npm/_logs/2018-11-05T15_45_08_550Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fabric-dev-servers#0.0.14 prepare: `npm run build-archives`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fabric-dev-servers#0.0.14 prepare 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! /Users/alydabbous/.npm/_logs/2018-11-05T15_45_08_587Z-debug.log
Make sure You are Using Node 8.9 or bellow:
node -v
if output is more than 8.9 then uninstall node and re-install it with 8.9 version or use nvm(Node Version Manager). Google it you can find above process easily.
everyone!
I am trying to run default task on npm run command on Windows 10.
That is an error that I have got while using it.
npm ERR! code ELIFECYCLE
npm ERR! errno 9
npm ERR! builderLight#0.0.15 start: `bower install && gulp --debug`
npm ERR! Exit status 9
npm ERR!
npm ERR! Failed at the builderLight#0.0.15 start 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\User\AppData\Roaming\npm-cache\_logs\2018-04-29T15_01_45_882Z-debug.log
How to fix this bug?
You simply have to run first: npm install or bower install
when i tried to deploy my nodejs app (blockchain) locally, i encountered the below error.
npm ERR! Linux 4.4.0-31-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--quiet"
npm ERR! node v4.7.2
npm ERR! npm v4.1.1
npm ERR! code ELIFECYCLE
npm ERR! hashtable#2.0.2 install: `node-gyp configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hashtable#2.0.2 install script 'node-gyp configure build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the hashtable package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp configure build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs hashtable
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls hashtable
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /usr/src/app/npm-debug.log
ERROR: Service 'asset-diamond-demo' failed to build: The command '/bin/sh -c npm install --quiet' returned a non-zero code: 1
But when i deployed it from my personal laptop at home, it got deployed.
seems to be not building at office.
can anyone suggest any solutions?
Install nvm and use it to ensure you have a clean, up to date working Node setup. Try installing Node 7.something with nvm instead of 4.
I'm having some trouble installing NW.js. When I run npm install nw, I get these error messages:
> nw#0.12.3 postinstall /root/node_modules/nw
> node scripts/install.js
sh: 1: node: not found
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! nw#0.12.3 postinstall: `node scripts/install.js`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the nw#0.12.3 postinstall script.
npm ERR! This is most likely a problem with the nw package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls nw
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.3.0-kali1-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "nw"
npm ERR! cwd /root
npm ERR! node -v v4.2.6
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/npm-debug.log
npm ERR! not ok code 0
I'm pretty sure the problem has to do with the first section where it talks about node being installed. I know there's an issue with Debian where the node package is actually already taken, so they use nodejs instead. I don't know enough this to fix it, I've already tried running export node=nodejs and adding it to the ~/.bashrc. Does anyone have any ideas about what I can do? I've had this problem with other npm packages as well.
The nodejs executable is called node, not nodejs. So, just remove the line you added. (export node=nodejs)
If it still won't work: Try reinstall node via package management (apt-get/yum/dnf) or Try reinstall the executable and setup PATH from website (https://nodejs.org/en/download/).