mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 01:25:37 -05:00
18 lines
602 B
Batchfile
18 lines
602 B
Batchfile
@echo off
|
|
SET SUPPORTEDNPMVERSION=4.2.0
|
|
|
|
setlocal
|
|
set npm_config_disturl="https://atom.io/download/electron"
|
|
for /f "tokens=2 delims=:, " %%a in ('findstr /R /C:"\"electronVersion\":.*" "%~dp0..\package.json"') do set npm_config_target=%%~a
|
|
set npm_config_runtime="electron"
|
|
set npm_config_cache=~\.npm-electron
|
|
npm %*
|
|
endlocal
|
|
|
|
for /F "tokens=* USEBACKQ" %%V IN (`npm --version`) do (
|
|
set CURRENTNPMVERSION=%%V
|
|
)
|
|
if not %CURRENTNPMVERSION%==%SUPPORTEDNPMVERSION% (
|
|
echo NPM version %CURRENTNPMVERSION% is not supported with this project. We strongly recommend to use version %SUPPORTEDNPMVERSION%
|
|
)
|