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

Warnings during installation on GNU/Linux #54

Closed
1 of 5 tasks
nodeg opened this issue Mar 20, 2020 · 6 comments
Closed
1 of 5 tasks

Warnings during installation on GNU/Linux #54

nodeg opened this issue Mar 20, 2020 · 6 comments

Comments

@nodeg
Copy link

nodeg commented Mar 20, 2020

Issue details

When using glob-watcher on GNU/Linux I got several warnings during the installation with npm. The warnings concern only the packages fsevents. According to npm this optional dependency comes from the package chokidar.
Is it possible to only define chokidar as a dependency when using macOS?

Steps to reproduce/test case

  • Execute npm install glob-watcher

Versions running

  • glob-watcher [5.0.3]
  • Node [12.16.1]
  • Npm [6.14.3]

Affected platforms

  • linux
  • windows
  • OS X
  • freebsd
  • solaris
$ npm ls fsevents    
testpackage@1.0.0 /home/dom/test/testpackage
└─┬ glob-watcher@5.0.3
  └─┬ chokidar@2.1.8
    └── UNMET OPTIONAL DEPENDENCY fsevents@1.2.12

These warnings appear during the installation:

$ npm install glob-watcher
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: abbrev@1.1.1 (node_modules/fsevents/node_modules/abbrev):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/abbrev' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.abbrev.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ansi-regex@2.1.1 (node_modules/fsevents/node_modules/ansi-regex):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/ansi-regex' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.ansi-regex.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: aproba@1.2.0 (node_modules/fsevents/node_modules/aproba):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/aproba' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.aproba.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: balanced-match@1.0.0 (node_modules/fsevents/node_modules/balanced-match):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/balanced-match' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.balanced-match.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: chownr@1.1.4 (node_modules/fsevents/node_modules/chownr):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/chownr' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.chownr.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: code-point-at@1.1.0 (node_modules/fsevents/node_modules/code-point-at):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/code-point-at' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.code-point-at.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: concat-map@0.0.1 (node_modules/fsevents/node_modules/concat-map):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/concat-map' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.concat-map.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: console-control-strings@1.1.0 (node_modules/fsevents/node_modules/console-control-strings):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/console-control-strings' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.console-control-strings.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: core-util-is@1.0.2 (node_modules/fsevents/node_modules/core-util-is):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/core-util-is' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.core-util-is.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: deep-extend@0.6.0 (node_modules/fsevents/node_modules/deep-extend):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/deep-extend' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.deep-extend.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: delegates@1.0.0 (node_modules/fsevents/node_modules/delegates):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/delegates' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.delegates.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: detect-libc@1.0.3 (node_modules/fsevents/node_modules/detect-libc):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/detect-libc' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.detect-libc.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs.realpath@1.0.0 (node_modules/fsevents/node_modules/fs.realpath):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/fs.realpath' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.fs.realpath.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: has-unicode@2.0.1 (node_modules/fsevents/node_modules/has-unicode):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/has-unicode' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.has-unicode.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: inherits@2.0.4 (node_modules/fsevents/node_modules/inherits):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/inherits' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.inherits.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ini@1.3.5 (node_modules/fsevents/node_modules/ini):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/ini' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.ini.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: isarray@1.0.0 (node_modules/fsevents/node_modules/isarray):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/isarray' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.isarray.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@1.2.5 (node_modules/fsevents/node_modules/minimist):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/minimist' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.minimist.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ms@2.1.2 (node_modules/fsevents/node_modules/ms):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/ms' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.ms.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: npm-normalize-package-bin@1.0.1 (node_modules/fsevents/node_modules/npm-normalize-package-bin):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/npm-normalize-package-bin' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.npm-normalize-package-bin.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: number-is-nan@1.0.1 (node_modules/fsevents/node_modules/number-is-nan):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/number-is-nan' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.number-is-nan.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: object-assign@4.1.1 (node_modules/fsevents/node_modules/object-assign):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/object-assign' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.object-assign.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: os-homedir@1.0.2 (node_modules/fsevents/node_modules/os-homedir):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/os-homedir' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.os-homedir.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: os-tmpdir@1.0.2 (node_modules/fsevents/node_modules/os-tmpdir):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/os-tmpdir' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.os-tmpdir.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: path-is-absolute@1.0.1 (node_modules/fsevents/node_modules/path-is-absolute):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/path-is-absolute' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.path-is-absolute.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: process-nextick-args@2.0.1 (node_modules/fsevents/node_modules/process-nextick-args):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/process-nextick-args' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.process-nextick-args.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: safe-buffer@5.1.2 (node_modules/fsevents/node_modules/safe-buffer):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/safe-buffer' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.safe-buffer.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: safer-buffer@2.1.2 (node_modules/fsevents/node_modules/safer-buffer):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/safer-buffer' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.safer-buffer.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: sax@1.2.4 (node_modules/fsevents/node_modules/sax):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/sax' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.sax.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: semver@5.7.1 (node_modules/fsevents/node_modules/semver):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/semver' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.semver.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: set-blocking@2.0.0 (node_modules/fsevents/node_modules/set-blocking):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/set-blocking' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.set-blocking.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: signal-exit@3.0.2 (node_modules/fsevents/node_modules/signal-exit):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/signal-exit' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.signal-exit.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: strip-json-comments@2.0.1 (node_modules/fsevents/node_modules/strip-json-comments):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/strip-json-comments' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.strip-json-comments.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: util-deprecate@1.0.2 (node_modules/fsevents/node_modules/util-deprecate):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/util-deprecate' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.util-deprecate.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: wrappy@1.0.2 (node_modules/fsevents/node_modules/wrappy):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/wrappy' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.wrappy.DELETE'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: yallist@3.1.1 (node_modules/fsevents/node_modules/yallist):
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/dom/test/testpackage/node_modules/fsevents/node_modules/yallist' -> '/home/dom/test/testpackage/node_modules/fsevents/node_modules/.yallist.DELETE'
@terinjokes
Copy link

These warnings can be ignored: fsevents is only used on macOS, while we use chokidar on all systems.

@nodeg
Copy link
Author

nodeg commented Mar 23, 2020

I am aware of that fact, but still it would be nice to handle this differently and remove/hide the warnings on other systems.

@terinjokes
Copy link

These are warnings printed by npm. There's very little we can do here.

@nodeg
Copy link
Author

nodeg commented Mar 23, 2020

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.

@terinjokes
Copy link

@nodeg Even if that was possible, we use chokidar on all systems.

@yocontra
Copy link
Member

yocontra commented Mar 23, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants