Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

getting npm link to work on windows #2110

Closed
wants to merge 1 commit into from

2 participants

Bonuspunkt isaacs
Bonuspunkt

there still some issues left

  • when you dont run it as Admin you get Error: UNKNOWN when you exec npm link
  • when you have already linked it you get following error
    Error: EACCES, permission denied 'NodeDir/node_modules/moduleName'
    Please try running this command again as root/Administrator.
  • npm unlink doesn't work
isaacs
Owner

npm link is now enabled on Windows >= 0.7.9.

isaacs isaacs closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 31, 2012
  1. getting npm link to work on windows

    Bonuspunkt authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 8 deletions.
  1. +0 −7 lib/link.js
  2. +1 −1  lib/utils/link.js
7 lib/link.js
View
@@ -29,13 +29,6 @@ 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"))
2  lib/utils/link.js
View
@@ -25,6 +25,6 @@ function link (from, to, gently, cb) {
( [ [fs, "stat", from]
, [rm, to, gently]
, [mkdir, path.dirname(to)]
- , [fs, "symlink", relativize(from, to), to] ]
+ , [fs, "symlink", relativize(from, to), to, 'dir'] ]
, cb)
}
Something went wrong with that request. Please try again.