When using nvm install for not installed version Ansible informs that /bin/bash: nvm: command not found even when sourcing ~/.profile before installation.ĭoing the same via command line works perfectly. When using nvm use Ansible skip step and inform it's already installed (Yes, it's installed, but I want to use it, not install it using nvm use). Now using node v12.18.1 (npm node nvm install 12.18.0ĭownloading and installing node v12.18.0. profile: nvm install 12.18.1ĭownloading and installing node v12.18.1. Of course when I use command line on a server there is no issue even without sourcing the. This is how I install nvm: - name: Install nvm I wonder how to make Ansible change version already installed on a server. Theoretically, I run the same commands from Ansible on a server and there is still the first version installed. There is no issue when I'm doing it via command line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |