diff options
author | isaacs <i@izs.me> | 2012-06-28 03:26:47 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-06-28 03:26:47 +0400 |
commit | ee1d168d7a4798b67bb9a7667b5ec93a8be3d953 (patch) | |
tree | 3f978a9ad6b7ff80f3164f0c7d72ffd6c17eb169 /lib/npm.js | |
parent | a16773cc01bfc9604ae0d42e10f54bb04c5034e7 (diff) |
Make 'engines' field advisory
Discussion: https://groups.google.com/group/nodejs/browse_thread/thread/fd98204ce250d919
Diffstat (limited to 'lib/npm.js')
-rw-r--r-- | lib/npm.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/npm.js b/lib/npm.js index 69736c48b..03a46d1ec 100644 --- a/lib/npm.js +++ b/lib/npm.js @@ -57,13 +57,13 @@ try { npm.version = j.version npm.nodeVersionRequired = j.engines.node if (!semver.satisfies(process.version, j.engines.node)) { - log.error("unsupported version", ["" - ,"npm requires node version: "+j.engines.node - ,"And you have: "+process.version - ,"which is not satisfactory." - ,"" - ,"Bad things will likely happen. You have been warned." - ,""].join("\n")) + log.warn("unsupported version", ["" + ,"npm requires node version: "+j.engines.node + ,"And you have: "+process.version + ,"which is not satisfactory." + ,"" + ,"Bad things will likely happen. You have been warned." + ,""].join("\n")) } } catch (ex) { try { |