diff options
Diffstat (limited to 'installer')
-rw-r--r-- | installer/npm_install.cmd | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/installer/npm_install.cmd b/installer/npm_install.cmd index 5f1d9bb..8521869 100644 --- a/installer/npm_install.cmd +++ b/installer/npm_install.cmd @@ -3,9 +3,12 @@ if "x%1" equ "x" goto :EOF
if "x%2" equ "x" goto :EOF
-call npm init -y
+if not exist package.json (
+ call npm init -y
+
+ echo {"name":""}>package.json
+)
-echo {"name":""}>package.json
call npm install "%2"
|