Skip to content

Commit

Permalink
fix(task): don't use absolute path for node & npm
Browse files Browse the repository at this point in the history
  • Loading branch information
tchiotludo committed Dec 8, 2021
1 parent b8dce47 commit 92faf34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/io/kestra/core/tasks/scripts/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ public class Node extends AbstractBash implements RunnableTask<ScriptOutput> {
title = "The node interpreter to use",
description = "Set the node interpreter path to use"
)
private final String nodePath = "/usr/bin/node";
private final String nodePath = "node";

@Builder.Default
@Schema(
title = "The npm binary to use",
description = "Set the npm binary path for node dependencies setup"
)
private final String npmPath = "/usr/bin/npm";
private final String npmPath = "npm";

@Schema(
title = "node command args",
Expand Down

0 comments on commit 92faf34

Please sign in to comment.