-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
v10.0.0-rc.0 + npm emitting Buffer deprecation warnings #20160
Comments
FWIW, this happens with yarn (at least installed through brew) as well: yarnpkg/yarn#5704. I installed the RC via nvm, with the help of zsh-nvm (Also, you can minimize comments in the v10 thread if you want, see https://blog.github.com/2018-04-18-new-tools-for-open-source-maintainers/) EDIT: Wait, if there is magic around "is inside |
Same issue for me on macOS without even using nvm. Just happens when I |
@addaleax I think we might need to make this more lenient and just match anything in Line 379 in 1b438a7
The second part of that conditional creates the problems from what I can tell. Which corresponds to the following test case: test('/a/node_modules/b.js', '/a/node_modules/x.js', true); |
@apapirovski What are the values for |
Confirmed as well on my machine. |
@addaleax I think it's failing because code is executing with main being within node_modules. I don't think this is necessarily macOS only. E.g. But to go back to npm itself, after digging through it the culprit is here: |
Edited the title slightly as it's not just macOS, anything that spins up a process with the main file being within node_modules, gets its warnings printed. Lots of install / post-install scripts are in the mix too. |
Due to npm using workers on Windows which inititate processes for code within node_modules, the current way of testing is a little too strict to catch all occurrences. PR-URL: #20163 Fixes: #20160 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Minwoo Jung <minwoo@nodesource.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Turning on trace warnings so we can see what's causing the warning to be emitted:
It seems to be
/Users/trott/.nvm/versions/node/v10.0.0-rc.0/lib/node_modules/npm/node_modules/tar/lib/parse.js
which should not trigger a warning because it is inside of anode_modules
directory. The offending line is:The text was updated successfully, but these errors were encountered: