Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detecting shelljs/node #27

Closed
hemanth opened this issue Sep 15, 2012 · 2 comments
Closed

Detecting shelljs/node #27

hemanth opened this issue Sep 15, 2012 · 2 comments

Comments

@hemanth
Copy link

hemanth commented Sep 15, 2012

Is there a way detect if shelljs or node is installed in the system, within the script. I know it's kina dumb but, say in bash script it's possible to get the the $SHELL

Asking this because, say one decides to write a setup script with shelljs, then node becomes a dependency to get shelljs first....so bit confused... env['NODE_PATH'] would be useful? But also, can we know if shelljs is installed or not and then install it within shelljs 0_o

@arturadib
Copy link
Collaborator

not sure what you mean. if you don't have Node you won't be able to run the script at all. as for detecting ShellJS, do you mean locally or globally (as in the command shjs)? can you please clarify?

@hemanth
Copy link
Author

hemanth commented Sep 26, 2012

The doubt got clarified, thanks! 👨

@hemanth hemanth closed this as completed Sep 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants