mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-18 22:02:53 -04:00
fix: typo standalone (#6244)
This commit is contained in:
2
env/plugin-commands-env/src/env.ts
vendored
2
env/plugin-commands-env/src/env.ts
vendored
@@ -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',
|
||||
})
|
||||
}
|
||||
|
||||
2
env/plugin-commands-env/test/env.test.ts
vendored
2
env/plugin-commands-env/test/env.test.ts
vendored
@@ -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'))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user