Skip to content
Prev Previous commit
Next Next commit
Installing nvm from kokoro scripts.
  • Loading branch information
nicolasnoble committed May 1, 2018
commit 5f47953c88ac9671e5e474630b640cf56b28b587
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
@rem See the License for the specific language governing permissions and
@rem limitations under the License.

powershell -c "& { iwr https://raw.githubusercontent.com/grumpycoders/nvm-ps/master/nvm.ps1 | iex }"

SET PATH=%APPDATA%\nvm-ps;%APPDATA%\nvm-ps\nodejs;%PATH%

call nvm install 10
call nvm use 10

Expand Down
5 changes: 3 additions & 2 deletions tools/release/kokoro.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@

@echo "Starting Windows build"

@rem https://github.com/mapbox/node-pre-gyp/issues/362
call npm install -g node-gyp
powershell -c "& { iwr https://raw.githubusercontent.com/grumpycoders/nvm-ps/master/nvm.ps1 | iex }"

SET PATH=%APPDATA%\nvm-ps;%APPDATA%\nvm-ps\nodejs;%PATH%

cd /d %~dp0
cd ..\..
Expand Down
5 changes: 3 additions & 2 deletions tools/release/kokoro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# https://github.com/mapbox/node-pre-gyp/issues/362
npm install -g node-gyp
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

set -ex
cd $(dirname $0)/../..
Expand Down