Skip to content

Commit 5353b96

Browse files
fix: correct npm version command
Signed-off-by: Brooks Townsend <brooks@cosmonic.com>
1 parent 29d9914 commit 5353b96

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/wash/src/cli/component_build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ impl ComponentBuilder {
251251
}
252252
}
253253
ProjectType::TypeScript => {
254-
if !self.tool_exists("node", "-v") {
254+
if !self.tool_exists("node", "--version") {
255255
missing_tools.push("node (Node.js runtime)");
256256
}
257-
if !self.tool_exists("npm", "-v") {
257+
if !self.tool_exists("npm", "version") {
258258
missing_tools.push("npm (Node.js package manager)");
259259
}
260260
}

0 commit comments

Comments
 (0)