Giter Site home page Giter Site logo

Comments (12)

matthewtoast avatar matthewtoast commented on September 22, 2024 1

Initial test seems to indicate that require('npm') resolves this. I've gone through the process of opening creator, opening a project, making a change, and publishing three times (once on mono; once on staging build launched via double-click; once on production build launched via double-click; and each time it seems to work). Version 2.0.81 has this change: https://s3.amazonaws.com/haiku-electron-releases-production/releases/production-master-mac-latest.zip

from animator.

matthewtoast avatar matthewtoast commented on September 22, 2024

It happens consistently for me when I attempt to launch Haiku 2.0.80 which I have downloaded to my Desktop.

from animator.

zackbrown avatar zackbrown commented on September 22, 2024

related? https://www.npmjs.com/package/shell-path

from animator.

zackbrown avatar zackbrown commented on September 22, 2024

^ seems like that may be the key. fits with the pieces you described, that standalone macOS apps don't inherit $PATH, but a dev version or possibly a locally built version do

from animator.

matthewtoast avatar matthewtoast commented on September 22, 2024

But the locally built version is the one that gets uploaded ... 😭

from animator.

zackbrown avatar zackbrown commented on September 22, 2024

alternatively, bundling a specific version of npm with the app (a la require('npm')) would be more robust; reduces surface area of weird user issues like "I don't have npm installed" or "I have a really old or incompatible version fo npm installed"

from animator.

zackbrown avatar zackbrown commented on September 22, 2024

hm, maybe it's a quirk about it running on your own machine...? or from a directory that's not /Applications ? or running it from CLI instead of double-clicking? [of note: @taylorpoe was running into this issue when he double-clicked to start the app, but it went away when he ran it from the CLI]

from animator.

zackbrown avatar zackbrown commented on September 22, 2024

@matthewtoast when it works for you, have you been running as a double-clicked app or running from terminal (ostensibly to see logs) ? seems very likely to me that the $PATH-not-being-inherited-by-vanilla-run-apps is the cause here, and it makes sense that $PATH would be inherited when the app is opened via terminal.

from animator.

zackbrown avatar zackbrown commented on September 22, 2024

Also: this is showstopper priority, as it will block users from publishing

from animator.

matthewtoast avatar matthewtoast commented on September 22, 2024

Yeah, that makes a lot of sense. I'm testing out using require('npm') directly now.

from animator.

zackbrown avatar zackbrown commented on September 22, 2024

👍

from animator.

zackbrown avatar zackbrown commented on September 22, 2024

👏

from animator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.