Skip to content

VBC-197: hardcoded-node-version

warning

Category: ux-dx
Analysis: Regex (line by line)
File types: .sh, .json
Scope: source code only, ignoring anything inside strings and comments
Tags: dx portability

What it reports

Hardcoded system version check detected at line {line}. Use an .nvmrc or engine field in package.json instead.

Flagged

sh
node -v

Not flagged

sh
node build.js

Pattern

regex
node\s+-v|node\s+--version

Released under the MIT License.