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

Symlink not permitted. #2

Closed
andrewfinnell opened this issue Aug 29, 2016 · 3 comments
Closed

Symlink not permitted. #2

andrewfinnell opened this issue Aug 29, 2016 · 3 comments

Comments

@andrewfinnell
Copy link
Contributor

{ Error: EPERM: operation not permitted, symlink '[project]\node_modules\jquery' -> '[project]\src\js\deps\jquery'
at Error (native)
errno: -4048,
code: 'EPERM',
syscall: 'symlink',
path: 'project\node_modules\jquery',
dest: 'project\src\js\deps\jquery' }

It seems the module thinks it can use symlink even though it's on Windows. Does this module require intellij/gulp be run as Administrator?

node --version
v6.3.1

npm --version
3.10.7

gulp --version
[09:12:03] CLI version 3.9.1
[09:12:03] Local version 3.9.1

@andrewfinnell
Copy link
Contributor Author

andrewfinnell commented Aug 29, 2016

I ran gulp from an Administrator console and it performed as expected. Is there a command option to NOT have it use symlinks and instead copy the dependencies? I suppose the module is named link-dependencies. but that seems like a risky solution.

For anyone else that wants to be able to create symlinks without requiring Run as Administrator, we can enable Symlink creation using the following steps:

  1. Run gpedit.msc
  2. Computer Configuration
  3. Windows Settings
  4. Security Settings
  5. Local Policies
  6. User Rights Assignment
  7. Edit 'Create symbolic links' and add Users or your specific User Account.

@lazamar
Copy link
Collaborator

lazamar commented Aug 29, 2016

Unfortunately it currently doesn't have this option. When it was first implemented it copied instead of symlinking, we changed it later. If you look in the commits you can find the copying implementation. We accept pull requests :)

andrewfinnell added a commit to andrewfinnell/dep-linker that referenced this issue Sep 8, 2016
lazamar added a commit that referenced this issue Sep 12, 2016
This fixes issue #2 when trying to symlink on Win32 platforms.
@lazamar
Copy link
Collaborator

lazamar commented Sep 12, 2016

Solved by 616c363

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

No branches or pull requests

2 participants