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

How to silence fsevents warning on linux? #3267

Closed
1 task done
adamburgess opened this issue Mar 20, 2021 · 3 comments
Closed
1 task done

How to silence fsevents warning on linux? #3267

adamburgess opened this issue Mar 20, 2021 · 3 comments
Milestone

Comments

@adamburgess
Copy link

 WARN  Failed to find "/fsevents/2.3.2" in lockfile during hoisting. Next aliases will not be hoisted: fsevents
pnpm warning

Assuming this is a warning about fsevents not installing because it is an optional dependency that isn't compatible with linux:
(otherwise, bug report for this warning, then?)

Older versions of npm used to show a similar warning, but in npm v7 this warning was removed.

I would like to silence this warning. Best case scenario I would love to see no indication that fsevents was skipped.
This warning adds noise to every single add/remove/install command. I tried pnpm.neverBuiltDependencies but that didn't seem to help.

I used to use yarn, and in that you still get the warning, but there it is an info, and much more subdued.

yarn info

On Yarn you can also disable this warning entirely with echo "--ignore-platform true" > .yarnrc.

To repro:

pnpm init -y && pnpm add rollup (or any package that has an optional dependency on fsevents)

@sebastiangug
Copy link

Annoyed by this on windows as well

@zkochan
Copy link
Member

zkochan commented Apr 3, 2021

It probably happens because during hoisting the skipped optional dependencies is still looked up.

@adamburgess
Copy link
Author

Fixed by #3454

🎉🎉🎉

@zkochan zkochan added this to the v6.4 milestone May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants