-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Warnings during installation on GNU/Linux #54
Comments
These warnings can be ignored: fsevents is only used on macOS, while we use chokidar on all systems. |
I am aware of that fact, but still it would be nice to handle this differently and remove/hide the warnings on other systems. |
These are warnings printed by npm. There's very little we can do here. |
I see. I thought of something like this for example: if (os.type() === 'Linux')
"dependencies": {
"anymatch": "^2.0.0",
"async-done": "^1.2.0",
"is-negated-glob": "^1.0.0",
"just-debounce": "^1.0.0",
"object.defaults": "^1.1.0"
},
else if (os.type() === 'Darwin')
"dependencies": {
"anymatch": "^2.0.0",
"async-done": "^1.2.0",
"chokidar": "^2.0.0",
"is-negated-glob": "^1.0.0",
"just-debounce": "^1.0.0",
"object.defaults": "^1.1.0"
}, But according to npm-package.json this is not possible. |
@nodeg Even if that was possible, we use |
Going to close this since it is an npm issue - you can follow this PR instead: npm/cli#169 If this is a real sticking point I would suggest using yarn instead of NPM, it doesn't seem to be an issue when using yarn. |
Issue details
When using
glob-watcher
on GNU/Linux I got several warnings during the installation withnpm
. The warnings concern only the packagesfsevents
. According to npm this optional dependency comes from the packagechokidar
.Is it possible to only define
chokidar
as a dependency when using macOS?Steps to reproduce/test case
npm install glob-watcher
Versions running
Affected platforms
These warnings appear during the installation:
The text was updated successfully, but these errors were encountered: