diff --git a/nodejs/README.md b/nodejs/README.md index f560e5af6..e3370cfd4 100644 --- a/nodejs/README.md +++ b/nodejs/README.md @@ -1,7 +1,7 @@ # about minimum2scp/nodejs image * based on minimum2scp/baseimage (see https://github.com/minimum2scp/dockerfiles/tree/master/baseimage) - * node.js v24.15.0 is installed with [nodenv](https://github.com/nodenv/nodenv) + * node.js v26.1.0 is installed with [nodenv](https://github.com/nodenv/nodenv) * nodenv is installed in /opt/nodenv * [yarn](https://yarnpkg.com/) is installed with deb package @@ -56,7 +56,7 @@ If you need root privilege, use `sudo bash -lc "..."`. For example, install LTS version of nodejs: ``` -sudo bash -lc "nodenv install 22.22.2" +sudo bash -lc "nodenv install 24.15.0" ``` diff --git a/nodejs/build/scripts/02-nodenv b/nodejs/build/scripts/02-nodenv index be4131787..1b371a957 100755 --- a/nodejs/build/scripts/02-nodenv +++ b/nodejs/build/scripts/02-nodenv @@ -6,8 +6,8 @@ export DEBIAN_FRONTEND=noninteractive nodenv_root=/opt/nodenv -## get latest nodejs version (24.x.x) from https://nodejs.org/download/release/index.json -node_version=$(/bin/bash /tmp/build/nodejs/helpers/latest-nodejs-version v24.) +## get latest nodejs version (26.x.x) from https://nodejs.org/download/release/index.json +node_version=$(/bin/bash /tmp/build/nodejs/helpers/latest-nodejs-version v26.) ## install nodenv into /opt/nodenv git clone https://github.com/nodenv/nodenv.git ${nodenv_root} diff --git a/rails7/build/scripts/02-nodenv b/rails7/build/scripts/02-nodenv index dcb5074e9..5dfb5135f 100755 --- a/rails7/build/scripts/02-nodenv +++ b/rails7/build/scripts/02-nodenv @@ -6,8 +6,8 @@ export DEBIAN_FRONTEND=noninteractive nodenv_root=/opt/nodenv -## get latest nodejs version (24.x.x) from https://nodejs.org/download/release/index.json -node_version=$(/bin/bash /tmp/build/rails7/helpers/latest-nodejs-version v24.) +## get latest nodejs version (26.x.x) from https://nodejs.org/download/release/index.json +node_version=$(/bin/bash /tmp/build/rails7/helpers/latest-nodejs-version v26.) ## install nodenv into /opt/nodenv git clone https://github.com/nodenv/nodenv.git ${nodenv_root} diff --git a/spec/nodejs/00base_spec.rb b/spec/nodejs/00base_spec.rb index 4d086c82c..b256336b1 100644 --- a/spec/nodejs/00base_spec.rb +++ b/spec/nodejs/00base_spec.rb @@ -63,12 +63,12 @@ describe command('nodenv version-name') do let(:login_shell){ true } - its(:stdout){ should eq "24.15.0\n" } + its(:stdout){ should eq "26.1.0\n" } end [ { - nodejs: '24.15.0', + nodejs: '26.1.0', }, ].each do |v| describe command('nodenv versions --bare --skip-aliases') do @@ -86,15 +86,15 @@ let(:login_shell){ true } its(:stdout){ should eq <<~ALIASES - 24 => 24.15.0 - 24.15 => 24.15.0 + 26 => 26.1.0 + 26.1 => 26.1.0 ALIASES } end { - '24' => '24.15.0', - '24.15' => '24.15.0', + '26' => '26.1.0', + '26.1' => '26.1.0', }.each do |src, dest| describe file("/opt/nodenv/versions/#{src}") do it { should be_symlink } diff --git a/spec/rails7/00base_spec.rb b/spec/rails7/00base_spec.rb index 3fd8968bb..75ac8e5f7 100644 --- a/spec/rails7/00base_spec.rb +++ b/spec/rails7/00base_spec.rb @@ -78,12 +78,12 @@ describe command('nodenv version-name') do let(:login_shell){ true } - its(:stdout){ should eq "24.15.0\n" } + its(:stdout){ should eq "26.1.0\n" } end [ { - nodejs: '24.15.0', + nodejs: '26.1.0', }, ].each do |v| describe command('nodenv versions --bare --skip-aliases') do @@ -102,15 +102,15 @@ let(:login_shell){ true } its(:stdout){ should eq <<~ALIASES - 24 => 24.15.0 - 24.15 => 24.15.0 + 26 => 26.1.0 + 26.1 => 26.1.0 ALIASES } end { - '24' => '24.15.0', - '24.15' => '24.15.0', + '26' => '26.1.0', + '26.1' => '26.1.0', }.each do |src, dest| describe file("/opt/nodenv/versions/#{src}") do it { should be_symlink }