We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d794952 commit d7ba5b1Copy full SHA for d7ba5b1
src/commands/deploy/runtime-detect/strategies/nodejs.ts
@@ -23,9 +23,8 @@ export const strategy_nodejs: StrategyFn = async (workdir: string) => {
23
let runtime_version = "18.19.0";
24
if (engines?.node) {
25
try {
26
- const out = await cmd(
27
- `npm view node@${engines.node} version | tail -n 1 | cut -d "'" -f2`
28
- );
+ const check_cmd = `npm view node@"${engines.node}" version | tail -n 1 | cut -d "'" -f2`;
+ const out = await cmd(check_cmd);
29
runtime_version = out.stdout.toString();
30
log.info(
31
`Using node@${runtime_version} from engines in package.json (${engines.node})`
0 commit comments