Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Commit c6ddb64

Browse files
committed
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.
1 parent 47b340e commit c6ddb64

3 files changed

Lines changed: 0 additions & 19 deletions

File tree

bin/npm-cli.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@ log.info("using", "node@%s", process.version)
6161
// make sure that this version of node works with this version of npm.
6262
var semver = require("semver")
6363
, nodeVer = process.version
64-
, reqVer = npm.nodeVersionRequired
65-
if (reqVer && !semver.satisfies(nodeVer, reqVer)) {
66-
return errorHandler(new Error(
67-
"npm doesn't work with node " + nodeVer
68-
+ "\nRequired: node@" + reqVer), true)
69-
}
7064

7165
process.on("uncaughtException", errorHandler)
7266

lib/npm.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,6 @@ try {
4444
var j = JSON.parse(fs.readFileSync(
4545
path.join(__dirname, "../package.json"))+"")
4646
npm.version = j.version
47-
npm.nodeVersionRequired = j.engines.node
48-
if (!semver.satisfies(pv, j.engines.node)) {
49-
log.warn("unsupported version", [""
50-
,"npm requires node version: "+j.engines.node
51-
,"And you have: "+pv
52-
,"which is not satisfactory."
53-
,""
54-
,"Bad things will likely happen. You have been warned."
55-
,""].join("\n"))
56-
}
5747
} catch (ex) {
5848
try {
5949
log.info("error reading version", ex)

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,6 @@
157157
"require-inject": "~1.0.0",
158158
"tap": "~0.4.12"
159159
},
160-
"engines": {
161-
"node": ">=0.8"
162-
},
163160
"scripts": {
164161
"test-legacy": "node ./test/run.js",
165162
"test": "tap --timeout 120 test/tap/*.js",

0 commit comments

Comments
 (0)