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
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.
-rwxr-xr-xbin/npm-cli.js6
-rw-r--r--lib/npm.js10
-rw-r--r--package.json3
3 files changed, 0 insertions, 19 deletions
diff --git a/bin/npm-cli.js b/bin/npm-cli.js
index ef8873542..79ae7f50a 100755
--- a/bin/npm-cli.js
+++ b/bin/npm-cli.js
@@ -61,12 +61,6 @@ log.info("using", "node@%s", process.version)
// make sure that this version of node works with this version of npm.
var semver = require("semver")
, nodeVer = process.version
- , reqVer = npm.nodeVersionRequired
-if (reqVer && !semver.satisfies(nodeVer, reqVer)) {
- return errorHandler(new Error(
- "npm doesn't work with node " + nodeVer
- + "\nRequired: node@" + reqVer), true)
-}
process.on("uncaughtException", errorHandler)
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)
diff --git a/package.json b/package.json
index be46195a4..13c27ba61 100644
--- a/package.json
+++ b/package.json
@@ -157,9 +157,6 @@
"require-inject": "~1.0.0",
"tap": "~0.4.12"
},
- "engines": {
- "node": ">=0.8"
- },
"scripts": {
"test-legacy": "node ./test/run.js",
"test": "tap --timeout 120 test/tap/*.js",