Skip to content

Cannot install on M1 mac via npm due to release package not being found #969

Closed

Description

@cmtrapp02

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.

Activity

  1. sedwards2009 commented on Aug 28, 2022

    @sedwards2009
    Collaborator

    NodeGui doesn't support M1 at the moment. An upgrade to Qt6 has to be done first.

  2. TomasSestak commented on Sep 26, 2022

    @TomasSestak

    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?

  3. sedwards2009 commented on Oct 19, 2022

    @sedwards2009
    Collaborator

    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.

  4. jox commented on Mar 19, 2023

    @jox

    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

  5. LaGregance commented on Mar 28, 2023

    @LaGregance

    Same problem here, this issue shouldn't be close as it not solved...

  6. LaGregance commented on Mar 28, 2023

    @LaGregance

    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...

  7. LaGregance commented on Apr 8, 2023

    @LaGregance

    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.

  8. LaGregance commented on Apr 8, 2023

    @LaGregance

    As this issue is closed, I decided to create a fresh one here : #1004

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions