duojs / duo

A next-generation package manager for the front-end
3.42k stars 118 forks source link

EPERM error on windows when importing Bootstrap #422

Closed alessioalex closed 9 years ago

alessioalex commented 9 years ago

So I've tried using import in my css and running the build with either ones of @import 'twbs/bootstrap@v3.3.1:dist/css/bootstrap.css' and @import './custom-components/bootstrap/css/bootstrap.css'.

Each time I get this:

$ duo general.js general.css && serve

     building : general.js
        using : component_compat
        using : stoj
     building : general.css
        using : component_compat
        using : stoj
        built : general.js
        error : Error: EPERM, symlink 'c:\Users\avladutu\workplace\duo-version\c
ustom-components\bootstrap\fonts\glyphicons-halflings-regular.eot'

I'm on Windows 7 with latest Node stuff and Git Bash installed.

Any tips?

kevva commented 9 years ago

Are you running as an administrator?

alessioalex commented 9 years ago

No, I am at work and don't have admin rights.

kevva commented 9 years ago

Then you can't create symlinks.

alessioalex commented 9 years ago

So the fact is that I cannot use Duo then on Windows unless I'm an admin? Is there no workaround if symlinks aren't allowed.. ?

kevva commented 9 years ago

Use it with the --copy flag.

topherfangio commented 9 years ago

@kevva Thanks! Hadn't seen the --copy. It worked great for me :-)