Skip to content

Commit e37d325

Browse files
committed
fix(node): Use NPM_BINARY when set
1 parent d50d94a commit e37d325

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builders/nodejs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (builder *NodeJSBuilder) Analyze(m module.Module, allowUnresolved bool) ([]
127127

128128
// TODO: we must allow this to exit with error if a flag is passed (maybe --allow-npm-err)
129129
// because sometimes npm will throw errors even after a complete install
130-
out, stderr, err := runLogged(m.Dir, "npm", "ls", "--json")
130+
out, stderr, err := runLogged(m.Dir, builder.NPMCmd, "ls", "--json")
131131
if err != nil {
132132
log.Logger.Warningf("NPM had non-zero exit code: %s", stderr)
133133
}

0 commit comments

Comments
 (0)