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

Commit

Permalink
Remove engines
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
isaacs committed Sep 11, 2014
1 parent 47b340e commit c6ddb64
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
6 changes: 0 additions & 6 deletions bin/npm-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
10 changes: 0 additions & 10 deletions lib/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c6ddb64

Please sign in to comment.