Cannot install on M1 mac via npm due to release package not being found
When npm attempts to install nodegui on an M1 mac, it tries to download nodegui-binary-v0.57.0-darwin-arm64.tar.gz. An error is given that this package is not found. When looking at the release page, an arm64.tar.gz package does not exist.
Here is the error from the log regarding this issue: error Error: Error while downloading Precompiled NodeGui binary:https://github.com/nodegui/nodegui/releases/download/v0.57.0/nodegui-binary-v0.57.0-darwin-arm64.tar.gz. Not Found.
NodeGui doesn't support M1 at the moment. An upgrade to Qt6 has to be done first.
NodeGui doesn't support M1 at the moment. An upgrade to Qt6 has to be done first.
Is there an estimate time of the release with upgrade?
I'll probably do it at some stage. But I'm now coming off a big refactor of the packaging of my "main" project Extraterm. It has taken far longer than expected and has been a slog, but I (we!) should get a NodeGui oriented packaging tool once I improve it a bit and write some docs. So, I want to do some fun dev work on Extraterm before I go into another slog like upgrading NodeGui to Qt6.
So, maybe within the next 6 months. There is also a qode/node upgrade which needs to be done too.
Just bumped into this issue. Is there any updates on it? It seems Qt was upgraded to 6 in December. But I still end up with this:
Error: Error while downloading Precompiled NodeGui binary:https://github.com/nodegui/nodegui/releases/download/v0.59.0/nodegui-binary-v0.59.0-darwin-arm64.tar.gz. Not Found
Same problem here, this issue shouldn't be close as it not solved...
I manage to solve the problem by building myself Qt & nodegui
# 1. Build Qt
git clone git://code.qt.io/qt/qt5.git
cd qt5
git checkout 6.4
./init-repository --module-subset=essential -f
git submodule init qtsvg
git submodule update qtsvg
cd ..
mkdir qt5-6.4-macOS-release
cd qt5-6.4-macOS-release
../qt5/configure -release QMAKE_APPLE_DEVICE_ARCHS=arm64 -opensource -confirm-license -nomake examples -nomake tests -skip qt3d -skip webengine -skip qtactiveqt -skip qtcanvas3d -skip qtdeclarative -skip qtdatavis3d -skip qtdoc -skip qtgamepad -skip qtcharts -skip qtgraphicaleffects -skip qtlocation -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtvirtualkeyboard -skip qtscript
make -j15
make install
# 2. Add this to .bashrc or .zshrc
export QT_INSTALL_DIR="/usr/local/Qt-6.4.3"
# 3. Build nodegui
cd ..
gcl https://github.com/nodegui/nodegui.git
npm install
npm run build
Then I just have to run rm -rf node_modules && yarn install in my project.
I don't exactly know how but it's now working even if the https://github.com/nodegui/nodegui/releases/download/v0.59.0/nodegui-binary-v0.59.0-darwin-arm64.tar.gz is still not available...
Hi, I don't know why but it doesn't work again on my side. To fix it I do the following:
# Build nodegui
gcl https://github.com/nodegui/nodegui.git
cd nodegui
npm install
npm run build
cd build/Release
# Save the artifact to the cache directory
tar -czf nodegui-binary-v0.59.0-darwin-arm64.tar.gz nodegui_core.node
mkdir -p ~/Library/Caches/nodegui-core-nodejs
mv nodegui-binary-v0.59.0-darwin-arm64.tar.gz ~/Library/Caches/nodegui-core-nodejs/.
It would be really easier if the file nodegui-binary-v0.59.0-darwin-arm64.tar.gz is released with others, what is the process to add this artifact to the official repo ?
Thanks.
As this issue is closed, I decided to create a fresh one here : https://github.com/nodegui/nodegui/issues/1004