From 24de62683bbe337b4389cb57d48eb68c9afcf4ea Mon Sep 17 00:00:00 2001 From: wordi Date: Fri, 3 Jan 2020 14:44:12 +0900 Subject: fix: not found tsserver for typescript-language-server --- installer/npm_install.cmd | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'installer/npm_install.cmd') 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" -- cgit v1.2.3-54-g00ecf