Search code examples
nestjsnestjs-config

Warnings "use @jridgewell/sourcemap-codec instead" and "deprecated rimraf" after global installation of NestJS 9.2


I installed NestJS (v. 9.2) globally and received the following warnings:

npm i -g @nestjs/cli
npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
npm WARN deprecated [email protected]: Please upgrade to 4.3.1 or higher to fix a potentially damaging issue regarding symbolic link following.

nest --version
9.2.0

Is it what I can fix myself or will the NestJS developers fix this in the next release? I have no idea how to replace or upgrade this myself.


Solution

  • rimraf is a direct dependency of @nestjs/cli and there is already a pull request to update it so there's nothing you need to do there.

    sourcemap-codec is a dependency of magic-string which is a dep of @angular-devkit/schematics which is a dep of @nestjs/schematics which is a direct dep of @nestjs/cli. Looks like it already uses the newer package on version 0.30.0, which the newest @angular-devkit/schematics is already using, and there is a PR in both @nestjs/cli and @nestjs/scheamtics to update this, so again, nothing for you to do.