Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-06-28 03:26:47 +0400
committerisaacs <i@izs.me>2012-06-28 03:26:47 +0400
commitee1d168d7a4798b67bb9a7667b5ec93a8be3d953 (patch)
tree3f978a9ad6b7ff80f3164f0c7d72ffd6c17eb169 /lib/npm.js
parenta16773cc01bfc9604ae0d42e10f54bb04c5034e7 (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.js14
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 {