Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix symlink creation on Windows Issue #10 #11

Merged
merged 1 commit into from
Jun 10, 2015

Conversation

richard-bt
Copy link
Contributor

Fixes #10

On Windows 8.1 I was running in to an issue with the symbolic links created by Zelda.

Within my node_modules folder <package>.symlink files were being created instead of the expected folder symlinks.

Doing some searching led me to nodejs/node-v0.x-archive#2274, which pointed me towards the documentation here:
https://nodejs.org/api/fs.html#fs_fs_symlink_srcpath_dstpath_type_callback

It looks like if on Windows specifying the type parameter 'dir' to fs.symlinkSync is necessary for the right kind of link to be created. For non-Windows platforms this type parameter is ignored.

feross added a commit that referenced this pull request Jun 10, 2015
@feross feross merged commit f6c0677 into feross:master Jun 10, 2015
@feross
Copy link
Owner

feross commented Jun 10, 2015

Thanks! Released as 2.4.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants