1
nvmとnodeを迷惑メールにインストールしようとしていますが、動作させられないようです。 明らかに、nvmがあなたの端末をリロードする必要があるので、読み込み/読み込みに問題があります。 ~/.profile
は、これは私のbootstrap.shファイル迷惑メールブートストラップ:source〜/ .profileが動作しない
#install nvm
cd ~
curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh -o install_nvm.sh
bash install_nvm.sh
#this command makes it so that you don't need to re-open the terminal for 'nvm' to be available
source ~/.profile
#use nvm to install node
nvm install 6.2.2
nvm use 6.2.2
あるubuntu/xenial64
を使用してジョブ
をやっているようには見えません。私は(少し個人情報を隠すように変更)を取得エラー:
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
default: /installation_data => C:/work/<PATH_OMMITED>
==> default: Running provisioner: shell...
default: Running: C:/Users/ahmed/AppData/Local/Temp/vagrant-shell20160703-8248-1c82peg.sh
==> default: => Downloading nvm from git to '/home/ubuntu/.nvm'
=> default:
==> default: Cloning into '/home/ubuntu/.nvm'...
==> default: * (HEAD detached at v0.31.2)
==> default: master
==> default: => Appending source string to /home/ubuntu/.bashrc
==> default: => Close and reopen your terminal to start using nvm
==> default: /tmp/vagrant-shell: line 11: nvm: command not found
==> default: /tmp/vagrant-shell: line 12: nvm: command not found
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
スクリプトから 'source〜/ .profile'を実行することはできません。これは、そのスクリプトにのみ適用され、bootstrap.shを実行したシェルではないからです。 'source bootstrap.sh'はあなたが望む結果を出しますか? –