This repository was archived by the owner on Feb 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
Common Installation Problems
Matt Czyr edited this page Mar 2, 2021
·
10 revisions
- If running the command
createdb shuttletrackerreturns the errorcreatedb: could not connect to database postgres: FATAL: role "<username>" does not exist, it is because a a Postgres user has not been created for you. It can be fixed by running:-
psql -U postgresinterminal -
CREATE USER <username>;inpostgres=# -
ALTER USER <username> SUPERUSER CREATEDB;inpostgres=# - Confirm the resolved is error by running
\duinpostgres=#.
-
- If you receive a message stating that the server could not be started when trying to create the database, run
sudo service postgresql startand try again. - If when running
createdb shuttletrackeryou get an error about not being able to do this as root, follow these steps to create a new Linux superuser:- Run
sudo adduser <name of new user> - Enter a password for the new user
- Enter some additional information about the user, or press enter to skip
- Run
sudo usermod -aG sudo <name of new user> - Ensure the new user is a superuser by running
groups <name of new user> - Switch to the new superuser by running
su - <name of new user>
- Run
- When changing the Postgres URL in conf.json, you might be unsure of what the password is. In this case, open PostgreSQL using
sudo -u postgres psql postgresand then runalter user postgres with password 'postgres'to set the password to simplypostgres.
- If the terminal displays the error
$GOPATH not setwhen running thego buildcommand:- Open your shell's configuration file with
sudo vim ~/.bashrc,sudo vim ~/.zshrc, or similar depending on your shell - Set the $PATH by adding
export PATH=$PATH:/usr/local/go/binto the end of the file - Set the $GOPATH by adding
export GOPATH=$HOME/<path to your Shuttle Tracker directory>to the end of the file - Reload your shell's configuration with
source ~/.bashrc,source ~/.zshrc, etc.
- Open your shell's configuration file with
- If you ran
n stableto get the correct version of Node and get an error beginning withNode Sass could not find a binding for your current environmentwhile trying to runnpx vue-cli-service build --mode development, usenpm rebuild node-sassto correct it. - If when running
npx vue-cli-service build --mode developmentyou get an error saying npx is an unknown command, try restarting your computer. Alternatively, you can try reloading your terminal configuration withsource ~/.bashrcor a similar command depending on your operating system and shell. If all else fails, try reinstalling Node. - If running
sudo apt-get install nodejson Linux/WSL installs version 8.10.0 instead of the latest version:- Install n by running
sudo npm install -g n - Get the most recent version of node with
n stable - Run
sudo rm /usr/local/bin/nodeto remove the old version of node - Run
node -vto ensure you now have the latest version.
- Install n by running
- Issues related to npm are likely due to an incorrect Node version. Ensure you have the correct version with
node -v. - You can ignore the vulnerabilities
npm installwarns you about. Not all current versions of the libraries Shuttle Tracker uses function properly, sonpm fixwill break things.
If you need a fresh start, you can use sudo apt-get --purge remove <package name> to completely uninstall any of the above packages so you can try again.