isaacs/npm — Issue #2073: Cannot install to paths with symbolic links
Author: pvorb
Created: 2012-01-22 16:13:50+00:00
State: open

Since I installed the latest version of Node.js (v0.6.8) and npm (v1.1.0-2) via the MSI, npm doesn't install to directories that have got symbolic links in their path anymore. This worked with Node.js (v0.6.7) and npm (v1.1.0-beta-10).

```
C:\Dev\Src\js\bread>npm install bake
npm http GET https://registry.npmjs.org/bake
npm http 304 https://registry.npmjs.org/bake
npm ERR! Could not create C:\Dev\Src\js\bread\node_modules\___bake.npm
npm ERR! error installing bake@0.6.0

npm ERR! Error: Failed to mkdir C:\Dev\Src: File exists
npm ERR! at Object.STATCB [as oncomplete] (C:\Users\Paul\AppData\Roaming\npm
\node_modules\npm\lib\utils\mkdir-p.js:184:14)
npm ERR! You may report this log at:
npm ERR!
npm ERR! or email it to:
npm ERR!
npm ERR!
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "node" "C:\\Users\\Paul\\AppData\\Roaming\\npm\\node_modules\\n
pm\\bin\\npm-cli.js" "install" "bake"
npm ERR! cwd C:\Dev\Src\js\bread
npm ERR! node -v v0.6.8
npm ERR! npm -v 1.1.0-2
npm ERR! message Failed to mkdir C:\Dev\Src: File exists
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Dev\Src\js\bread\npm-debug.log
npm not ok
```

`C:\Dev` is a normal directory. `C:\Dev\Src` is a symlink.

This isn't critical, since Windows doesn't have the tools to create symlinks by default, but it would be nice to have for me, if this worked.