I am getting ready for a coding bootcamp and have followed certain instructions to install Linux (Ubuntu v22.04). The installation went fine but then I am told to enter the following command into the terminal:
sudo apt-get update && sudo apt-get upgrade && sudo apt-get install git && sudo apt-get install curl postgresql postgresql-contrib && touch ~/.bash_profile && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash && source ~/.nvm/nvm.sh && nvm install node && nvm use node && sudo -u postgres createuser --superuser $USER && sudo -u postgres createdb $USER && git config --global credential.helper store
As I understand, this is to install Git, NVM, Node and Postgresql, and it seems the first 3 installed correctly, however, the last lines are as follows:
Now using node v20.4.0 (npm v9.7.2)
could not change directory to "/home/user": Permission denied
could not change directory to "/home/user": Permission denied
I think this is in relation to postgresql, however I am at a total loss on if this is an issue or not. The guide I am following does not say anything about it and this is my first time using Linux of any kind so I am unfamiliar with the terminology.
Would appreciate any advice/explanation as necessary.