Skip to content

Commit 33e478a

Browse files
committed
fix(nodejs): Allow NPM errors by default
1 parent 4e13873 commit 33e478a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

analyzers/nodejs/nodejs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func (a *Analyzer) Analyze() (graph.Deps, error) {
227227
// Get packages.
228228
n := npm.NPM{
229229
Cmd: a.NPMCmd,
230-
AllowErr: a.Options.AllowNPMErr,
230+
AllowErr: a.Options.AllowNPMErr || true, // TODO: we should have a strict mode instead of an allow mode
231231
}
232232
pkgs, err := n.List(filepath.Dir(a.Module.BuildTarget))
233233
if err != nil {

0 commit comments

Comments
 (0)