Skip to content

Commit cf5b97d

Browse files
authored
fix(graphql): use npm i-peers instead of npm-install-peers (#4711)
When I run `npm-install-peers` in the `graphql-language-service-cli` directory, oddly enough, the `graphql-language-service` disappears from `node_modules` as a result of dependency resolution. As a result, the graphql language server does not work at all. From the PR I linked to, it seems that the mechanism to run `npm-install-peers` was originally put in for graphql. [Pull npm peerDependencies as required by elken · Pull Request #3511 · emacs-lsp/lsp-mode](#3511) Maybe if it was a previous version, it would rather not work without installing it. Replaced with a working package. I honestly don't know why `npm-install-peers` removes existing packages when dependency conflicts occur.
1 parent c95c911 commit cf5b97d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lsp-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8396,7 +8396,7 @@ nil."
83968396
(lsp-async-start-process callback
83978397
error-callback
83988398
(executable-find "npx")
8399-
"npm-install-peers")))))
8399+
"i-peers")))))
84008400
error-callback
84018401
npm-binary
84028402
"-g"

0 commit comments

Comments
 (0)