Failing to install dependencies
See original GitHub issueI’m unable to run the example apps. npm install and yarn fail.
output:
> @nodegui/nodegui@0.1.1 install /Users/[redacted]/Web/react-nodegui/examples/weather-app-widget/node_modules/@nodegui/nodegui
> npm -v
6.10.1
> @nodegui/qode@1.0.0 postinstall /Users/[redacted]/Web/react-nodegui/examples/weather-app-widget/node_modules/@nodegui/qode
> node install.js
Local Qode 1.0.0 archive doesnt exists... Copying Qode from cache...
Extracting binaries...
> @nodegui/nodegui@0.1.1 postinstall /Users/[redacted]/Web/react-nodegui/examples/weather-app-widget/node_modules/@nodegui/nodegui
> npm run build:addon
> @nodegui/nodegui@0.1.1 build:addon /Users/[redacted]/Web/react-nodegui/examples/weather-app-widget/node_modules/@nodegui/nodegui
> node-gyp -j 8 configure build
CC(target) Release/obj.target/nothing/../../node-addon-api/src/nothing.o
TOUCH 8d54a0613d50a84adae49a5312f848b52b1b3ed9.intermediate
ACTION binding_gyp_qtnode_target_symlink_qt_headers 8d54a0613d50a84adae49a5312f848b52b1b3ed9.intermediate
LIBTOOL-STATIC Release/nothing.a
Traceback (most recent call last):
File "./gyp-mac-tool", line 611, in <module>
sys.exit(main(sys.argv[1:]))
File "./gyp-mac-tool", line 30, in main
exit_code = executor.Dispatch(args)
File "./gyp-mac-tool", line 45, in Dispatch
return getattr(self, method)(*args[1:])
File "./gyp-mac-tool", line 248, in ExecFilterLibtool
if not libtool_re.match(line) and not libtool_re5.match(line):
TypeError: cannot use a string pattern on a bytes-like object
make: *** [Release/nothing.a] Error 1
rm 8d54a0613d50a84adae49a5312f848b52b1b3ed9.intermediate
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:190:23)
gyp ERR! stack at ChildProcess.emit (events.js:196:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:256:12)
gyp ERR! System Darwin 18.6.0
gyp ERR! command "/usr/local/Cellar/node/12.1.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "-j" "8" "configure" "build"
gyp ERR! cwd /Users/[redacted]/Web/react-nodegui/examples/weather-app-widget/node_modules/@nodegui/nodegui
gyp ERR! node -v v12.1.0
gyp ERR! node-gyp -v v5.0.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nodegui/nodegui@0.1.1 build:addon: `node-gyp -j 8 configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @nodegui/nodegui@0.1.1 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! /Users/[redacted]/.npm/_logs/2019-08-15T19_04_16_298Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nodegui/nodegui@0.1.1 postinstall: `npm run build:addon`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @nodegui/nodegui@0.1.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top Results From Across the Web
How To Fix Failed To Install A Dependency Error In Kodi
Many Kodi dependency errors can easily be fixed by clearing the Kodi cache. This is very easy to do on most streaming boxes...
Read more >How To Fix Failed to Install a Dependency on KODI [2022]
The first method that we are going to discuss here is to clear the cache of Kodi Add-ons. By performing this it removes...
Read more >How to fix “Failed to install a dependency” error In Kodi
The most common reason for this error is that the addon you're trying to use relies on tools that are either missing, out...
Read more >Fix: 'Failed to Install a Dependency' Error on Kodi - TechNadu
Solution 2: Rebuild Kodi's Database · Confirm your decision and delete the file for good; · Finally, shut down your Kodi. Wait for...
Read more >How to Fix 'Failed to install Dependency' Error in Kodi?
Solution: Installing Script ; Launch Kodi and try to install the add-on which you are facing the problem with. ; Go to the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@master-atul thanks for finding that, I had this issue too and I can confirm that switching to Python 2 for the installation resolves it.
If you have Python installed using
pyenv
(https://github.com/pyenv/pyenv), this is very easy to do (and if you don’t have Python installed usingpyenv
, I highly recommend it). Basic steps withpyenv
:pyenv install 2.7.16
(assuming a version of Python 2 is not already installed)pyenv shell 2.7.16
npm install
These steps will set your current shell/terminal so that only Python 2 is available, and then when you run
npm install
from that same shell, the installation/build works.Will update Readme and close this issue : https://github.com/nodegui/nodegui/projects/1#card-25295641