Giter Site home page Giter Site logo

Comments (4)

einaros avatar einaros commented on May 7, 2024

This isn't necessarily easy to circumvent. Are you running this through some custom installer?

from ws.

martinthomson avatar martinthomson commented on May 7, 2024

Just running npm.cmd install socket.io. It's part of a build process that has a controlled environment. Adding '.' to the path is possible, but not desirable. Maybe you could create a preinstall.js script that did the necessary magic (I don't fully understand why you need a Makefile) and run 'node preinstall' instead of make.

from ws.

einaros avatar einaros commented on May 7, 2024

To start with the end: I need a makefile on non-windows systems to build the native extensions. The native extensions, in turn, makes ws much faster than it'd be with plain JavaScript, in addition to providing actual utf8 verification of the incoming stream.

Regarding a preinstall script, this is possible as well, but it would require some finesse. In specialized build environments such as the one you are using I can't even guarantee that node is in the path, so executing a preinstall.js could fail for completely different reasons.

This will all change in future versions of node (0.7+), when the gyp build system replaces node-waf. Any sort-of-working hack would thus just be temporary, and probably not be a catch-all in either case. I think I'll just have to say that any specialized build system will have to be adapted (such as adding . to the path, or actually running npm install from within the actual project directory).

In either case, I'll get back to you on this in the morning. I may decide to work around it.

from ws.

martinthomson avatar martinthomson commented on May 7, 2024

Integrating different build systems is a complicated process. Obviously, since you have special requirements, you end up with special problems. Whatever you judge to be the best.

from ws.

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.