Comments (8)
I'm looking into it. :-/
from websocket-node.
Hm. This "just works" for me on Mac OS X with Node 0.8.1. Can you provide any more information?
$ npm install websocket
npm http GET https://registry.npmjs.org/websocket
npm http 200 https://registry.npmjs.org/websocket
> [email protected] install /Users/theturtle32/work/test/node_modules/websocket
> node-gyp rebuild
gyp http GET http://nodejs.org/dist/v0.8.1/node-v0.8.1.tar.gz
gyp http 200 http://nodejs.org/dist/v0.8.1/node-v0.8.1.tar.gz
CXX(target) Release/obj.target/validation/src/validation.o
../src/validation.cc:144:31: warning: no newline at end of file
../src/validation.cc: In function ‘int is_valid_utf8(size_t, char*)’:
../src/validation.cc:71: warning: comparison between signed and unsigned integer expressions
../src/validation.cc:75: warning: comparison between signed and unsigned integer expressions
SOLINK_MODULE(target) Release/validation.node
SOLINK_MODULE(target) Release/validation.node: Finished
[email protected] node_modules/websocket
from websocket-node.
Just built it successfully on 0.8.0 as well. Closing unless more information is provided.
from websocket-node.
OS : Linux Mint 12, Ubuntu Precise, Arch, and probably Centos 6 (my and my colleagues OS)
If I remember well :
- Installation ran fine, but runtime was broken.
- We got this error while trying to run a fresh checkout of cube , or maybe one software using socket.io
I did not look further yet, but I'll send you more informations on monday if I get the time
from websocket-node.
It works perfectly for me on OS X. I'll try on Linux soon when I get a chance. As much detailed information as you can dig up would be very much appreciated!
from websocket-node.
$> npm i
npm http GET http://registry.npmjs.org/underscore
npm http GET http://registry.npmjs.org/async
npm http GET http://registry.npmjs.org/websocket/1.0.6
npm http 200 http://registry.npmjs.org/websocket/1.0.6
npm http GET http://registry.npmjs.org/websocket/-/websocket-1.0.6.tgz
npm http 200 http://registry.npmjs.org/underscore
npm http GET http://registry.npmjs.org/underscore/-/underscore-1.3.3.tgz
npm http 200 http://registry.npmjs.org/async
> [email protected] install /path/to/my/app/node_modules/websocket
> node-gyp rebuild
info it worked if it ends with ok
spawn python [ '/home/myuser/.node-gyp/0.8.0/tools/gyp_addon',
'binding.gyp',
'-I/path/to/my/app/node_modules/websocket/build/config.gypi',
'-f',
'make' ]
spawn make [ 'BUILDTYPE=Debug', '-C', 'build' ]
make: entrant dans le répertoire « /path/to/my/app/node_modules/websocket/build »
CXX(target) Debug/obj.target/validation/src/validation.o
../src/validation.cc: In function ‘int is_valid_utf8(size_t, char*)’:
../src/validation.cc:71:23: attention : comparaison entre des expressions entières signée et non signée [-Wsign-compare]
../src/validation.cc:75:27: attention : comparaison entre des expressions entières signée et non signée [-Wsign-compare]
SOLINK_MODULE(target) Debug/obj.target/validation.node
SOLINK_MODULE(target) Debug/obj.target/validation.node: Finished
COPY Debug/validation.node
make: quittant le répertoire « /path/to/my/app/node_modules/websocket/build »
info done ok
[email protected] ./node_modules/async
[email protected] ./node_modules/underscore
[email protected] ./node_modules/websocket
So install is OK, but :
npm test
> [email protected] test /path/to/my/app
> NODE_ENV=test node_modules/mocha/bin/mocha --reporter spec
/path/to/my/app/node_modules/websocket/lib/Validation.js:17
throw e;
^
Error: Cannot find module '../build/default/validation'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/path/to/my/app/node_modules/websocket/lib/Validation.js:15:20)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/path/to/my/app/node_modules/websocket/lib/WebSocketConnection.js:23:18)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/path/to/my/app/node_modules/websocket/lib/WebSocketRequest.js:21:27)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/path/to/my/app/node_modules/websocket/lib/WebSocketServer.js:20:24)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/path/to/my/app/node_modules/websocket/lib/websocket.js:2:20)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/path/to/my/app/node_modules/websocket/index.js:1:80)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/path/to/my/app/lib/index.js:7:23)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/path/to/my/app/test/CRUD.js:3:23)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at /path/to/my/app/node_modules/mocha/bin/_mocha:273:27
at Array.forEach (native)
at load (/path/to/my/app/node_modules/mocha/bin/_mocha:270:9)
at Object.<anonymous> (/path/to/my/app/node_modules/mocha/bin/_mocha:261:1)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:487:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
npm ERR! [email protected] test: `NODE_ENV=test node_modules/mocha/bin/mocha --reporter spec`
npm ERR! `sh "-c" "NODE_ENV=test node_modules/mocha/bin/mocha --reporter spec"` failed with 1
npm ERR!
npm ERR! Failed at the [email protected] test script.
npm ERR! This is most likely a problem with the app package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! NODE_ENV=test node_modules/mocha/bin/mocha --reporter spec
npm ERR! You can get their info via:
npm ERR! npm owner ls app
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.0.0-21-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "test"
npm ERR! cwd /path/to/my/app
npm ERR! node -v v0.8.0
npm ERR! npm -v 1.1.25
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] test: `NODE_ENV=test node_modules/mocha/bin/mocha --reporter spec`
npm ERR! message `sh "-c" "NODE_ENV=test node_modules/mocha/bin/mocha --reporter spec"` failed with 1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /path/to/my/app/npm-debug.log
npm ERR! not ok code 0
from websocket-node.
@theturtle32 sorry for the details delay, btw
from websocket-node.
It builds perfectly on linux now, at least as of version 1.0.7. Closing.
from websocket-node.
Related Issues (20)
- Best Practice For Re-Using W3CWebsocket Client? HOT 3
- [W3CWebSocket] Connection failed when urls start with `wss://` HOT 1
- The NPM package is not a place for politics HOT 1
- The NPM package is not a place for politics HOT 2
- Get URL Parameters HOT 1
- Ssl using cloudflare
- Send bytes query
- broadcast
- How to connect to multiple WebSockets? HOT 1
- install of websocket and immediatly disapear
- How Can we get Connection URL from w3cwebsocket to webSocket.Server Connection
- Similar to emit socket.io HOT 1
- send to all connected clients HOT 2
- Getting vulnerable issue [email protected]
- Need more docs on the usage of client
- Unable to connect with auth info in url and special characters HOT 1
- connection.on('message', ...) - where this event is emitted ? HOT 1
- This pkg appears abandoned. I recommend switching to "ws", it's a very similar implementation HOT 4
- Malware dependency
- Update UTF-8 Validation Code
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 websocket-node.