aboutsummaryrefslogtreecommitdiff
path: root/installer/npm_install.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'installer/npm_install.cmd')
-rw-r--r--installer/npm_install.cmd8
1 files changed, 6 insertions, 2 deletions
diff --git a/installer/npm_install.cmd b/installer/npm_install.cmd
index 5f1d9bb..12347e2 100644
--- a/installer/npm_install.cmd
+++ b/installer/npm_install.cmd
@@ -3,9 +3,13 @@
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"