We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab0db66 commit 00fdcf4Copy full SHA for 00fdcf4
tools/check-environment.js
@@ -53,6 +53,17 @@ try {
53
printWarning(issues);
54
}
55
56
+if (require.main === module) {
57
+ // we are running this script directly so just run checkEnvironment against the main angular
58
+ // package.json
59
+ var engines = require(__dirname + '/../package.json').engines;
60
+ checkEnvironment({
61
+ requiredNodeVersion: engines.node,
62
+ requiredNpmVersion: engines.npm,
63
+ requiredYarnVersion: engines.yarn
64
+ });
65
+}
66
+
67
function checkEnvironment(reqs) {
68
exec('npm --version', function(npmErr, npmStdout) {
69
exec('yarn --version', function(yarnErr, yarnStdout) {
0 commit comments