-
Notifications
You must be signed in to change notification settings - Fork 36
Cannot find node to check version if app is packed on MacOS #18
Comments
@develar what if we add this script for
alternatively, instead of |
|
@mikeal This may be blocking, although we could read the relevant files and construct a |
Yes, JetBrains IDEs uses this approach: https://github.com/JetBrains/intellij-community/blob/master/bin/mac/printenv.py |
reconstructing the entire shell environment is going to be hard. we'll also have to recognize that this will end up enabling versions managers which won't actually pick up the installation we currently do. if we go down the route of reconstructing the shell env we'll need to also handle detecting and possibly disabling node version managers. |
IMO, for now having at least the standard path is a good start |
An app launched by a GUI launcher (Finder, Dock, Spotlight etc.) receives a pretty empty and useless environment, since standard Unix ways of setting variables via e.g. ~/.profile do not work.
http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x
So, code
exec('node --version'
in thecheck-node.js
doesn't work becausenode
cannot be found (if you run app, notelectron .
, see #17).The text was updated successfully, but these errors were encountered: