diff options
author | isaacs <i@izs.me> | 2011-10-01 01:44:00 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2011-10-01 01:44:00 +0400 |
commit | 68441953c74415efa1751ae94dee05b2fd8dfbf5 (patch) | |
tree | bb2b2ca9f77d95db9046b9087c2c8bd6f3a1a79d /lib/link.js | |
parent | f062908e132ac8ce22e605ba64016e649020a360 (diff) |
npm link not supported on win32
Diffstat (limited to 'lib/link.js')
-rw-r--r-- | lib/link.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/link.js b/lib/link.js index 57fffabf3..1115bc49c 100644 --- a/lib/link.js +++ b/lib/link.js @@ -29,6 +29,13 @@ link.completion = function (opts, cb) { } function link (args, cb) { + if (process.platform === "win32") { + var e = new Error("npm link not supported on windows") + e.code = "ENOTSUP" + e.errno = require("constants").ENOTSUP + return cb(e) + } + if (npm.config.get("global")) { return cb(new Error("link should never be --global.\n" +"Please re-run this command with --local")) |