question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use global `prettier` package as a fallback when Prettier is not installed inside a project.

See original GitHub issue

When inside a directory with a package.json that has prettier as a dependency, this extension will not format a document until I run yarn install (or npm install), even if I have prettier installed globally on the machine. Seems like the extension should check for a global fallback rather than just failing.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
yuhrcommented, Dec 9, 2018

I propose this order: local > global > bundled

0reactions
github-actions[bot]commented, Apr 13, 2020

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Install - Prettier
Note: If you forget to install Prettier first, npx will temporarily download the latest version. That's not a good idea when using Prettier, ......
Read more >
In VS Code, I'm getting this error, 'Failed to load module ...
A workaround is to remove the prettier entry in package.json of this package - no local/global prettier install necessary.
Read more >
failed to load prettier from package.json · Issue #1066 - GitHub
Can we fallback to global installed prettier bin instead if prettier not found from package.json ? 1
Read more >
Prettier plugin's config "prettier package" should default to ...
Ideally, the field "Prettier package:" would be set to the current project's ./node_modules/prettier if it exists (or, as a fallback, the global one, ......
Read more >
How to configure Prettier and VSCode - Gleb Bahmutov
VSCode setup #​​ To use the Prettier we have just installed from VSCode we need to install the Prettier VSCode extension: Launch VS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found