Development
Nvm Error User

bashrc error in node version for gitlab-runner user

update this in .bashrc and .profile files in gitlab-runner user

export NVM_DIR="/home/gitlab-runner/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
source ~/.bashrc
source ~/.profile

then install the nvm package and install node version as per needed

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
nvm install your_node_version
nvm alias default your_node_version

🧙 AI Wizard - Instant Page Insights

Click the button below to analyze this page.
Get an AI-generated summary and key insights in seconds.
Powered by Perplexity AI!