Comments (4)
What version of Meteor are you on? I wouldn't recommend using this package if your Meteor version > 1.3. You can install socketio directly from npm if you're using any recent version of Meteor, which is highly recommended
from socket-io-client.
I am on meteor 1.4.2.3 version.
I tried Npm.depends() also.
I was getting error
harish:communication: updating npm dependencies -- socket.io-client...
/home/harishreddy/.meteor/packages/ecmascript/.0.5.9.ui3230++os+web.browser+web.cordova/plugin.compile-ecmascript.os/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:190
throw error;
^
Error: ENOENT: no such file or directory, lstat '/home/harishreddy/meteorPackages/communication/.npm/package/node_modules'
at Error (native)
at Object.fs.lstatSync (fs.js:839:18)
at Object.wrapper (/tools/fs/files.js:1535:35)
at files.(anonymous function) (/tools/fs/files.js:1636:27)
at wrap.makeCacheKey._len2 (/tools/fs/optimistic.js:22:15)
at Entry._reallyRecompute (/home/harishreddy/.meteor/packages/meteor-tool/.1.4.2_3.h5rt9d++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/optimism/lib/entry.js:215:26)
at Entry._recomputeIfDirty (/home/harishreddy/.meteor/packages/meteor-tool/.1.4.2_3.h5rt9d++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/optimism/lib/entry.js:179:17)
at Entry.recompute (/home/harishreddy/.meteor/packages/meteor-tool/.1.4.2_3.h5rt9d++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/optimism/lib/entry.js:46:20)
at optimistic (/home/harishreddy/.meteor/packages/meteor-tool/.1.4.2_3.h5rt9d++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/optimism/lib/index.js:50:18)
at /tools/isobuild/meteor-npm.js:438:17
at Object.meteorNpm.dependenciesArePortable (/tools/isobuild/meteor-npm.js:520:10)
at NodeModulesDirectory.isPortable (/tools/isobuild/bundler.js:269:22)
at /tools/isobuild/bundler.js:1975:17
at Function._.each._.forEach (/home/harishreddy/.meteor/packages/meteor-tool/.1.4.2_3.h5rt9d++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/underscore/underscore.js:87:22)
at JsImage.write (/tools/isobuild/bundler.js:1972:7)
at ServerTarget.write (/tools/isobuild/bundler.js:2241:13)
at /tools/isobuild/bundler.js:2336:30
at /tools/isobuild/bundler.js:2469:9
at Array.forEach (native)
at /tools/isobuild/bundler.js:2459:26
at /tools/isobuild/bundler.js:2399:7
at /tools/isobuild/bundler.js:2800:22
at /tools/utils/buildmessage.js:271:13
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:264:29
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:262:18
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at /tools/utils/buildmessage.js:253:23
at [object Object].withValue (/tools/utils/fiber-helpers.js:89:14)
at Object.capture (/tools/utils/buildmessage.js:252:19)
at bundle (/tools/isobuild/bundler.js:2633:31)
at /tools/isobuild/bundler.js:2580:32
at Object.withCache (/tools/fs/files.js:1601:12)
at Object.exports.bundle (/tools/isobuild/bundler.js:2580:16)
at /tools/runners/run-app.js:574:36
at Function.run (/tools/tool-env/profile.js:490:12)
at bundleApp (/tools/runners/run-app.js:573:34)
at AppRunner._runOnce (/tools/runners/run-app.js:617:35)
at AppRunner._fiber (/tools/runners/run-app.js:876:28)
at /tools/runners/run-app.js:403:12
from socket-io-client.
As of writing, we can only load NPM packages using this method on the server. This is due to the nature of how Node works as a server-side environment.
I think this might be the problem, as your package uses Npm.depends()
from socket-io-client.
See: https://github.com/joncursi/socket-io-client#meteor-13
from socket-io-client.
Related Issues (7)
- Use socket-io-client to connect serverSide with nodeJS server HOT 2
- Please publish your package joncursi:socket-io-client for Windows HOT 3
- can i connect to ws://socketserver ? HOT 1
- Cannot read property 'protocol' of undefined HOT 1
- Web socket connection not receiving data after re-connect HOT 1
- ReferenceError: io is not defined HOT 1
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 socket-io-client.