Coder Social home page Coder Social logo

Comments (9)

Hypercubed avatar Hypercubed commented on September 26, 2024

Actually I think you need to use 'junction' to avoid the permissions issue on windows. but to do so the paths must be absolute.

from ied.

fatfisz avatar fatfisz commented on September 26, 2024

I've just tested this in cmd and it worked without problem, will read about this a bit more.

This should also solve #35. Also the absolute paths should not a problem in this case so everything should work out.

from ied.

fatfisz avatar fatfisz commented on September 26, 2024

Ok, there's a serious problem with that: even changing the main project directory name will invalidate all of the junctions.
I think that's too big of a trade-off, because there won't be a way to warn Windows users when such a thing happens, whereas in the worst case of the symbolic link scenario they will be able to get an informative message.
Also, a new command would have to be made that regenerates all of the junctions, and it would only be useful for Windows users.

What do you think @alexanderGugel?

from ied.

Hypercubed avatar Hypercubed commented on September 26, 2024

I spent a long time today playing with this. I could not get ied to run without admin. You might have better luck. Take a look at this: https://github.com/npm/npm/blob/master/lib/utils/link.js

from ied.

fatfisz avatar fatfisz commented on September 26, 2024

It seems that they also use junctions. Anyway, I'm looking into utilizing powershell for creating symlinks painlessly.

from ied.

alexanderGugel avatar alexanderGugel commented on September 26, 2024

👍

from ied.

Hypercubed avatar Hypercubed commented on September 26, 2024

Yeah, from what I see ied (nom?) is much more symlink heavy. junction links my be a bad idea. Do you think using power shell will get around the need for admin?

from ied.

fatfisz avatar fatfisz commented on September 26, 2024

I'm closing this, as it has been inactive for quite some time. I'm really sorry I didn't help with this as I promised.

from ied.

zkochan avatar zkochan commented on September 26, 2024

@fatfisz have you tried pnpm. It uses a symlinked node_modules as ied and supports Windows fine (uses junctions on Windows)

from ied.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.