mirror of https://github.com/grpc/grpc-node.git
Installing nvm from kokoro scripts.
This commit is contained in:
parent
e35856061e
commit
5f47953c88
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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 ..\..
|
||||
|
|
|
|||
|
|
@ -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)/../..
|
||||
|
|
|
|||
Loading…
Reference in New Issue