Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use shutil.which result to run npm #955

Merged
merged 2 commits into from
Oct 8, 2023
Merged

Conversation

jameshurst
Copy link
Contributor

References

Code changes

Uses the result of shutil.which to run npm when locating the global prefix.

This fixes retreiving the npm global prefix on Windows. On Windows the npm command is actually named npm.CMD, but shutil.which is able to successfully resolve npm to npm.CMD. By using the result of shutil.which to run npm we are able to account for the Windows specific suffix.

User-facing changes

Backwards-incompatible changes

Chores

  • linted
  • tested
  • documented
  • changelog entry

@github-actions
Copy link

Binder 👈 Launch a binder notebook on branch jameshurst/jupyterlab-lsp/master

Copy link
Member

@krassowski krassowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@krassowski krassowski merged commit 018b8f4 into jupyter-lsp:main Oct 8, 2023
16 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working os:windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants