Skip to content

Fixed ISSUE-47399: Npm install script fails when executed in Node16

Starting from Node 16, fs.rmdirSync is deprecated and is set to throw on non-existent paths. It is recommended to replace this call with fs.rmSync, which was introduced in Node 14.14.0, so this fix is compatible with both Node v14 and v16.

Node.js documentation: https://nodejs.org/api/fs.html#fsrmdirsyncpath-options

MR where fs.rm is introduced: https://github.com/nodejs/node/pull/35494

Edited by Augusto Mauch

Merge request reports