2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Qiita株式会社Advent Calendar 2024

Day 19

Node.js で deprecation warning を無視する

Last updated at Posted at 2024-12-18

あまりやらない方がいいとは思う

けど,理由があって,deprecation warning を無視したかった

  • 短期的なもの
  • 自分でコントロールしていないものの内部
    • fork して何かする程がんばる何かではない
$ node -e 'new Buffer("")'
(node:59511) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
$ node --no-deprecation -e 'new Buffer("")'
$ NODE_OPTIONS=--no-deprecation node -e 'new Buffer("")'

Refs

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?