Skip to content

Commit d7ba5b1

Browse files
author
Marc Pomar
committed
fix: deal
1 parent d794952 commit d7ba5b1

File tree

1 file changed

+2
-3
lines changed
  • src/commands/deploy/runtime-detect/strategies

1 file changed

+2
-3
lines changed

src/commands/deploy/runtime-detect/strategies/nodejs.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ export const strategy_nodejs: StrategyFn = async (workdir: string) => {
2323
let runtime_version = "18.19.0";
2424
if (engines?.node) {
2525
try {
26-
const out = await cmd(
27-
`npm view node@${engines.node} version | tail -n 1 | cut -d "'" -f2`
28-
);
26+
const check_cmd = `npm view node@"${engines.node}" version | tail -n 1 | cut -d "'" -f2`;
27+
const out = await cmd(check_cmd);
2928
runtime_version = out.stdout.toString();
3029
log.info(
3130
`Using node@${runtime_version} from engines in package.json (${engines.node})`

0 commit comments

Comments
 (0)