aboutsummaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
authorwordi <wordijp@gmail.com>2020-01-03 14:44:12 +0900
committerwordi <wordijp@gmail.com>2020-01-03 14:56:22 +0900
commit24de62683bbe337b4389cb57d48eb68c9afcf4ea (patch)
tree2141a1d1082b061a3f991a8e63d5f308488b71d4 /installer
parentac4f61f82fd8d0c4b0cbabd4e364dced0c72c645 (diff)
downloadvim-lsp-settings-24de62683bbe337b4389cb57d48eb68c9afcf4ea.tar.gz
vim-lsp-settings-24de62683bbe337b4389cb57d48eb68c9afcf4ea.tar.bz2
vim-lsp-settings-24de62683bbe337b4389cb57d48eb68c9afcf4ea.zip
fix: not found tsserver for typescript-language-server
Diffstat (limited to 'installer')
-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"