diff options
author | Jon Hall <jon_hall@outlook.com> | 2015-09-06 21:59:09 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2015-09-10 23:42:38 +0300 |
commit | 6665e5489bae2418696695c5e8f15642ea2339b1 (patch) | |
tree | de7b506d060cfde1519c8026cbb55e4490585109 /lib | |
parent | 25fbaedd68919223867c9b2c0856966c1981dd06 (diff) |
link: allow npm link to run on windows with prerelease versions of node
(provided they are newer than 0.7.9)
PR-URL: https://github.com/npm/npm/pull/9506
Fixes: #9505
Diffstat (limited to 'lib')
-rw-r--r-- | lib/link.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/link.js b/lib/link.js index cb44a6be7..9a62b0633 100644 --- a/lib/link.js +++ b/lib/link.js @@ -29,7 +29,7 @@ link.completion = function (opts, cb) { function link (args, cb) { if (process.platform === 'win32') { var semver = require('semver') - if (!semver.satisfies(process.version, '>=0.7.9')) { + if (!semver.gte(process.version, '0.7.9')) { var msg = 'npm link not supported on windows prior to node 0.7.9' var e = new Error(msg) e.code = 'ENOTSUP' |