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>2014-09-12 03:42:10 +0400
committerisaacs <i@izs.me>2014-09-12 03:42:10 +0400
commitc6ddb6462fe32bf3a27b2c4a62a032a92e982429 (patch)
treefc4bd3d2fbfe46a4afcb8868f95aa41863394bbe /lib/npm.js
parent47b340ec27af4cc23c0a0de777246e96395e043c (diff)
Remove engines
Node v0.6 is pretty much gone at this point. Also, the -pre upsets SemVer 4, making it annoying to test npm on Node in development.
Diffstat (limited to 'lib/npm.js')
-rw-r--r--lib/npm.js10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/npm.js b/lib/npm.js
index b3640836a..5321debf3 100644
--- a/lib/npm.js
+++ b/lib/npm.js
@@ -44,16 +44,6 @@ try {
var j = JSON.parse(fs.readFileSync(
path.join(__dirname, "../package.json"))+"")
npm.version = j.version
- npm.nodeVersionRequired = j.engines.node
- if (!semver.satisfies(pv, j.engines.node)) {
- log.warn("unsupported version", [""
- ,"npm requires node version: "+j.engines.node
- ,"And you have: "+pv
- ,"which is not satisfactory."
- ,""
- ,"Bad things will likely happen. You have been warned."
- ,""].join("\n"))
- }
} catch (ex) {
try {
log.info("error reading version", ex)