fix: typo standalone (#6244)

This commit is contained in:
GreyXor
2023-03-19 20:02:40 +01:00
committed by GitHub
parent 81ca8b1aa5
commit 36ffbfcd4b
2 changed files with 2 additions and 2 deletions

View File

@@ -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',
})
}

View File

@@ -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'))
})