-
Notifications
You must be signed in to change notification settings - Fork 99
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
Issue with the setup script #95
Comments
so, it looks like your mingw environment doesn't know about mongo, at least as "mongo", or perhaps it's some quirk of mingw's shell? |
It says: "bash: mongo: command not found" |
thanks for the detailed report @siddhanth339, could you try navigating to the MongoDB installation directory from the terminal and run Also, is it possible to share the list of variables on your PATH from your terminal? I'm not currently logged into my windows machine, will try doing so tomorrow morning. |
@siddhanth339 since you're running the setup script the cygwin terminal, please run ./mongo and list the path from that shell itself. |
@YashKumarVerma any update? |
Apologies but I'm writing university exams this week so was not able to investigate this myself. |
Update: After successfully running the setup_script, running npm start also runs fine but when I go to localhost:4010, it says "Cannot Get /" |
It is fairly strange that installing wget solved that problem, but it did nonetheless. The logic for checking whether or not mongo is available in the path or not is (given below). I will play around with this weekend and let you know about the results. ###
## check if the system has required services installed
###
if ! command -v "mongo" &>/dev/null; then
echo "mongo could not be found on path. Please ensure that mongo is installed and is on PATH"
exit
fi
if ! command -v "node" &>/dev/null; then
echo "node could not be found on path. Please ensure that node is installed and is on PATH"
exit
fi |
Describe the bug
I was following the instructions on using setup script to initialize the project. I have the Distro, Caracal, and caMicroscope repositories in the same parent folder. When I run "bash ./setup_script.sh", I get an error saying the mongo path was not found while I have set the path inside environment variables.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The script must run smoothly and start the application
Screenshots
The error:
My environment variables window:
System information:
The text was updated successfully, but these errors were encountered: