From 36ffbfcd4bf870b3bd1c38bbc01d294082148674 Mon Sep 17 00:00:00 2001 From: GreyXor <79602273+GreyXor@users.noreply.github.com> Date: Sun, 19 Mar 2023 20:02:40 +0100 Subject: [PATCH] fix: typo standalone (#6244) --- env/plugin-commands-env/src/env.ts | 2 +- env/plugin-commands-env/test/env.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/env/plugin-commands-env/src/env.ts b/env/plugin-commands-env/src/env.ts index 2ce3389216..f26ef91f27 100644 --- a/env/plugin-commands-env/src/env.ts +++ b/env/plugin-commands-env/src/env.ts @@ -88,7 +88,7 @@ export async function handler (opts: NvmNodeCommandOptions, params: string[]) { }) } if (opts.global && !opts.bin) { - throw new PnpmError('CANNOT_MANAGE_NODE', 'Unable to manage Node.js because pnpm was not installed using the standalon installation script', { + throw new PnpmError('CANNOT_MANAGE_NODE', 'Unable to manage Node.js because pnpm was not installed using the standalone installation script', { hint: 'If you want to manage Node.js with pnpm, you need to remove any Node.js that was installed by other tools, then install pnpm using one of the standalone scripts that are provided on the installation page: https://pnpm.io/installation', }) } diff --git a/env/plugin-commands-env/test/env.test.ts b/env/plugin-commands-env/test/env.test.ts index 008464bc25..b96db869d3 100644 --- a/env/plugin-commands-env/test/env.test.ts +++ b/env/plugin-commands-env/test/env.test.ts @@ -277,5 +277,5 @@ test('fail if there is no global bin directory', async () => { pnpmHomeDir: process.cwd(), rawConfig: {}, }, ['use', 'lts']) - ).rejects.toEqual(new PnpmError('CANNOT_MANAGE_NODE', 'Unable to manage Node.js because pnpm was not installed using the standalon installation script')) + ).rejects.toEqual(new PnpmError('CANNOT_MANAGE_NODE', 'Unable to manage Node.js because pnpm was not installed using the standalone installation script')) })