diff --git a/lib/manager/npm/post-update/index.ts b/lib/manager/npm/post-update/index.ts
index c092c8ad1fe220e0eb9751de50b0bbf34390e172..842acf601256300d6567ac8ac42bb61ab73ae758 100644
--- a/lib/manager/npm/post-update/index.ts
+++ b/lib/manager/npm/post-update/index.ts
@@ -150,7 +150,6 @@ export async function writeExistingFiles(
         packageFile.yarnrc
           .replace('--install.pure-lockfile true', '')
           .replace('--install.frozen-lockfile true', '')
-          .replace(/^yarn-path.*$/m, '')
       );
     }
     const { npmLock } = packageFile;