Comments (12)
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.
It happens consistently for me when I attempt to launch Haiku 2.0.80 which I have downloaded to my Desktop.
from animator.
related? https://www.npmjs.com/package/shell-path
from animator.
^ 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.
But the locally built version is the one that gets uploaded ...
from animator.
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.
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.
@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.
Also: this is showstopper priority, as it will block users from publishing
from animator.
Yeah, that makes a lot of sense. I'm testing out using require('npm')
directly now.
from animator.
from animator.
from animator.
Related Issues (20)
- Could not load svg file HOT 1
- (Mac) App very slow, Too much lags, Poor documentation, UX difficulties, Illustrator edits does not change HOT 2
- Help pages on help.haiku.ai no longer seem to work.
- Undo function does not undo any component creation (eg. scene splitting).
- [Suggestion] Move from Electron to Tauri 🤔❓
- Domain haiku.ai is down, can't access docs
- Package as a Flatpak for Linux HOT 1
- Docs Website Currently Down, Figma Integration Failing HOT 1
- Bitdefender Warning
- Continue the project HOT 1
- Please maintain the project
- Provide windows built
- Cannot install haiku in fedora
- [Feature] - Support for flutter
- Is the project still active? HOT 5
- Where is the "next release"? We want the Windows binary, please! 😢 HOT 4
- yarn install && yarn setup error
- Sorry I mistook
- Sorry, I mistook(2)
- Sorry, I mistook(3).
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from animator.