File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ $toolsList = @(
126126 (Get-HGVersion ),
127127 (Get-MinikubeVersion ),
128128 (Get-NewmanVersion ),
129+ (Get-NVersion ),
129130 (Get-NvmVersion ),
130131 (Get-OpensslVersion ),
131132 (Get-PackerVersion ),
Original file line number Diff line number Diff line change @@ -170,6 +170,11 @@ function Get-NewmanVersion {
170170 return " Newman $ ( newman -- version) "
171171}
172172
173+ function Get-NVersion {
174+ $nVersion = (n -- version).Replace(' v' , ' ' )
175+ return " n $nVersion "
176+ }
177+
173178function Get-NvmVersion {
174179 $nvmVersion = bash - c " source /etc/skel/.nvm/nvm.sh && nvm --version"
175180 return " nvm $nvmVersion "
Original file line number Diff line number Diff line change @@ -9,9 +9,8 @@ source $HELPER_SCRIPTS/install.sh
99
1010# Install default Node.js
1111defaultVersion=$( get_toolset_value ' .node.default' )
12- # TODO: Usage of "githubusercontent.com/mklement0" doesn't look like a correct approach. Need to correct it according to the official Node.js docs.
13- curl -sL https://raw.githubusercontent.com/mklement0/n-install/stable/bin/n-install | bash -s -- -ny -
14- ~ /n/bin/n $defaultVersion
12+ curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o ~ /n
13+ bash ~ /n $defaultVersion
1514
1615# Install node modules
1716node_modules=$( get_toolset_value ' .node_modules[].name' )
You can’t perform that action at this time.
0 commit comments