Comments (9)
Yeah, it's worth revisiting the install process entirely. Moving the discussion here #16
from deco-ide.
Would be awesome if you get it working. I have looked at https://www.npmjs.com/package/electron-sudo before, might be the right way to go for running the postinstall again after an upgrade.
from deco-ide.
Hmm. Seems like we'd be better off avoiding the need for sudo
in the first place, if possible.
I'm guessing this is mainly a requirement in OS X when modifying signed/system executables or something to that effect, yes?
from deco-ide.
Ah! It is a very poorly named file. This is essentially a cocoascripted cocoa app that is used to run scripts with sudo access. See desktop/handlers/upgradeHandler.js
from deco-ide.
I was just working toward the same goal and hit the same roadblock. Hope one of us gets somewhere!
from deco-ide.
@namuol we install some things into the system path (watchman, node, etc) — those generally require sudo. You never know if someone has certain folder permissions set strangely as well, so it avoids the installer failing in those edge cases. Open to finding ways around sudo; I agree it is an annoyance.
from deco-ide.
There could be a path to install deco with npm
, which would effectively require node to be installed in the first place. Other binaries (i.e. watchman) could just be dependencies in package.json
, and would be executed with npm scripts.
It's probably safe to assume most React developers have node installed. :)
from deco-ide.
True, however, we have seen interest from designers and some other non-dev types.
Perhaps we could include in the installer an optional "Environment Setup" step? Since Developers like to have more transparency into their environment and everyone else doesn't really want to deal with that stuff.
from deco-ide.
Hmm. Taking a step back: Why do watchman and node need to be system executables in the first place? Couldn't they just be bundled with Deco and run from its own installation location? i.e. ./<Deco>/libs/binaries/node
This would also have the benefit of ensuring the exact expected versions are being used to prevent environment inconsistencies.
from deco-ide.
Related Issues (20)
- I can't run it returns require is not defined and Electron is not defined HOT 1
- [URGENT]I CANNOT insert any deco component by using the IDE HOT 3
- Unable to find a destination HOT 1
- error FBSOpenApplicationServiceErrorDomain code=1 HOT 1
- "The task to find simulators took too long"
- components search get nothing HOT 1
- Project record cannot clear
- Is this still active? HOT 1
- Saving project, Deco unresponsive
- Update Failure: The application will now close HOT 1
- Increase font size for the editor HOT 2
- Linux support HOT 1
- Still active project? HOT 7
- Update old Packages and fix some vulnerabilities!
- Readme file out of date.
- Can't run project, node version is wrong? HOT 1
- I can't search component on the left,IDE didn't respond. HOT 1
- React-Native 0.57.0 Broken IDE HOT 5
- How to debug code in DECO IDE
- How to send files to simulator
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 deco-ide.