From 9250f2842456dff373508dce50cff536e32d8686 Mon Sep 17 00:00:00 2001 From: "Nicholas C. Zakas" Date: Mon, 19 Aug 2024 11:26:09 -0400 Subject: [PATCH] docs: Add workaround if npx fails (#108) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 唯然 --- packages/migrate-config/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/migrate-config/README.md b/packages/migrate-config/README.md index 29cdc70..5525704 100644 --- a/packages/migrate-config/README.md +++ b/packages/migrate-config/README.md @@ -28,6 +28,13 @@ bunx @eslint/migrate-config .eslintrc.json The tool will automatically find your `.eslintignore` file in the same directory and migrate that into your new configuration file. +If you receive any npm errors while running using `npx`, install the package manually first: + +```shell +npm i @eslint/migrate-config +npx @eslint/migrate-config .eslintrc.json +``` + ### CommonJS Output By default, this tool generates an ESM file (`.mjs` extension). If you'd like to generate a CommonJS file instead, pass the `--commonjs` flag: