Comments (4)
This isn't necessarily easy to circumvent. Are you running this through some custom installer?
from ws.
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.
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.
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)
- query: difference between ws.onmessage = handler and ws.on('message', handler) HOT 2
- Messages are dispatched while microtask queue is not empty HOT 6
- Uhhh, what does .isAlive do again? HOT 2
- RangeError: Invalid WebSocket frame: MASK must be set HOT 1
- Invalid dns names should not cause an uncatchable fatal exception HOT 2
- Incorrect/incomplete documentation HOT 3
- Catching message exceeding maxPayload without automatically closing the connection HOT 4
- No way to detect half-closed websockets HOT 4
- Error: Unexpected server response: 404 HOT 6
- Invalid UTF-8 sequence even though the message is encoded HOT 4
- Throws TypeError when there are too many HTTP headers HOT 3
- Source Code Confusion HOT 3
- DoS HOT 2
- Cannot add async functions to server.upgrade. Causes client connection close during the authentication. HOT 6
- Contribution Proposal and Chinese Documentation Request for WS Library HOT 2
- Bug: v8.18.0 released major breaking change (not minor) and data sent as Blob (not Buffer) HOT 7
- [Feature]: Improve Project's JSDoc Types HOT 27
- Type in @types/ws for server address is wrong HOT 1
- Build warning: Can't resolve 'bufferutil' HOT 3
- How to unsubscribe from a topic HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ws.