Reinstall Node whenever a NodeRuntime operation has serious error
This commit is contained in:
parent
b2de28ccfc
commit
db2b3e47bc
7 changed files with 126 additions and 87 deletions
|
@ -263,11 +263,11 @@ impl LspAdapter for EsLintLspAdapter {
|
|||
fs::rename(first.path(), &repo_root).await?;
|
||||
|
||||
self.node
|
||||
.run_npm_subcommand(&repo_root, "install", &[])
|
||||
.run_npm_subcommand(Some(&repo_root), "install", &[])
|
||||
.await?;
|
||||
|
||||
self.node
|
||||
.run_npm_subcommand(&repo_root, "run-script", &["compile"])
|
||||
.run_npm_subcommand(Some(&repo_root), "run-script", &["compile"])
|
||||
.await?;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue