nodejs / node

Node.js JavaScript runtime ✨🐢🚀✨
https://nodejs.org
Other
106.51k stars 29.02k forks source link

DeprecationWarnings emitted during addon/node-api test compilation #38065

Open mscdex opened 3 years ago

mscdex commented 3 years ago

I'm seeing a bunch of

[DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
(Use `node --trace-deprecation ...` to show where the warning was created)

while the addon/node-api tests compile (via make jstest). I even did a make distclean to verify this was not being caused by cached/outdated build artifacts/scripts.

cjihrig commented 3 years ago

I think the issue is fixed by https://github.com/nodejs/node-gyp/pull/2322, which was released in node-gyp v8.0.0 today.

DeeDeeG commented 3 years ago

I am still seeing the warning with node-gyp v8.0.0 and Node nightly v16, but I submitted a fix as a PR https://github.com/nodejs/node-gyp/pull/2368.