LoginSignup
6
5

More than 5 years have passed since last update.

itamaeでndenv使ってnodejsを入れる時に気をつけること

Posted at
execute "install node" do
  command "ndenv install v4.2.6 -s"
end

-sつけないと2度目以降の実行時に止まる。
なぜなら既にインストールされてるケースでは以下のように聞かれるから。

ndenv install v4.2.6
ndenv: /hogehoge/.ndenv/versions/v4.2.6 already exists
continue with installation? (y/N)

not_if "test -d NODEJSDIR"とかちゃんと書かないとアカンなー

みんなは「nodejsのインストールって時間かかるんだなー」とか言いながらアホ面で画面を小一時間見てた俺のようには決してならないでくれ。

6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5