[wp-trac] [WordPress Trac] #44246: Add `check-node-version` to check required Node.js and npm versions are installed
WordPress Trac
noreply at wordpress.org
Sun May 27 23:21:24 UTC 2018
#44246: Add `check-node-version` to check required Node.js and npm versions are
installed
------------------------------+-----------------------
Reporter: netweb | Owner: azaozz
Type: enhancement | Status: reopened
Priority: normal | Milestone: 5.0
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
------------------------------+-----------------------
Comment (by netweb):
Via Slack:
> maybe we can run `check-node-version` from grunt and output just a
"message"?
We could use https://www.npmjs.com/package/grunt-run to run `check-node-
version` then use `grunt.log.writeln` to display anything extra not
already displayed by `check-node-version` message
> or actually can be a warning so it stops
Patch [attachment:44246.2.diff] would achieve this, though no message
would be displayed other than the node/npm warning message displayed by
`check-node-version`:
> Error: Wanted npm version >= 6.1.0 (>=6.1.0)
> To install npm, run `npm install -g npm@>= 6.1.0`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44246#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list