Skip to content

Commit 1f9433f

Browse files
committed
modified nodelinker to use trim()
1 parent f6c3a5f commit 1f9433f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/api/cli/src/util/check-system.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async function checkPnpmConfig() {
5050
return;
5151
}
5252

53-
const nodeLinker = await spawnPackageManager(pnpm, ['config', 'get', 'node-linker']);
53+
const nodeLinker = (await spawnPackageManager(pnpm, ['config', 'get', 'node-linker'])).trim();
5454
if (nodeLinker !== 'hoisted') {
5555
throw new Error(
5656
'When using pnpm, `node-linker` must be set to "hoisted" (or a custom `hoist-pattern` or `public-hoist-pattern` must be defined). Run `pnpm config set node-linker hoisted` to set this config value, or add it to your project\'s `.npmrc` file.'

0 commit comments

Comments
 (0)