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 See the License for the specific language governing permissions and
|
||||||
@rem limitations under the License.
|
@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 install 10
|
||||||
call nvm use 10
|
call nvm use 10
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,9 @@
|
||||||
|
|
||||||
@echo "Starting Windows build"
|
@echo "Starting Windows build"
|
||||||
|
|
||||||
@rem https://github.com/mapbox/node-pre-gyp/issues/362
|
powershell -c "& { iwr https://raw.githubusercontent.com/grumpycoders/nvm-ps/master/nvm.ps1 | iex }"
|
||||||
call npm install -g node-gyp
|
|
||||||
|
SET PATH=%APPDATA%\nvm-ps;%APPDATA%\nvm-ps\nodejs;%PATH%
|
||||||
|
|
||||||
cd /d %~dp0
|
cd /d %~dp0
|
||||||
cd ..\..
|
cd ..\..
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,9 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
# https://github.com/mapbox/node-pre-gyp/issues/362
|
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
|
||||||
npm install -g node-gyp
|
export NVM_DIR="$HOME/.nvm"
|
||||||
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
cd $(dirname $0)/../..
|
cd $(dirname $0)/../..
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue