Closed Rikudouu closed 8 years ago
Upgrade your node. 0.10 no longer works. I had the same issue last week. On 14 Jul 2016 1:38 PM, "BadassOverlord" notifications@github.com wrote:
Server Problem
If your issue is related to using the website and not about running a server, you can remove this section.
Please confirm whether you've tried the following debugging steps:
- [Done] Run npm run build-server to regenerate lib/ from src/
- [Done] Run rm -rf node_modules && npm install to get a fresh install of dependencies
- [Done] Restarted the server
Description of the Problem
- What triggers the problem? Changing channel settings
- What happens? Nothing saves from channel settings. I try to make my channel public, but it doesn't go public. I try to type in chat but it doesn't let me (red circle with line though pops up instead). I try to browse for a youtube video but it tells me, the administrator with 255 rank, that I don't have permission to browse this channel's library, even though I made the channel.
System Information
- Operating System: Ubuntu Gnome 15.04 64-bit
- Node Version: (run node -v) v0.10.25
- CyTube Version: (displayed at startup) v3.18.6
- Error Messages Displayed: [Wed Jul 13 2016 20:30:51] TypeError: Cannot read property 'globalRank' of undefined at EventEmitter.
(/home/sinusbot/sync/src/user.js:112:20) at EventEmitter.emit (events.js:95:17) at /home/sinusbot/sync/src/io/ioserver.js:232:18 at process._tickDomainCallback (node.js:459:13) — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/calzoneman/sync/issues/600, or mute the thread https://github.com/notifications/unsubscribe/ABf1tWhBAPpiT9w4MlkYhArN8EMt-KINks5qVa8zgaJpZM4JMDbt .
To add to what bush said, I only test the service on v4.x (LTS), and v6.x (current stable). v0.12.x and v0.10.x may or may not work, I don't test them (evidently, 0.10.x doesn't work).
Oh. Sorry, I'm very new to Linux and don't really understand it much, I've just been following the commands on installation tutorials. I guess it defaulted to an older version. I'll try updating.
Also, why doesn't the npm install work with a newer version of node? I was having difficulties because npm kept saying I had a legacy version of node, so then I did sudo apt-get install nodejs-legacy and it worked. :/
Very confused haha
You need to delete the node modules folder after upgrading node On 14 Jul 2016 1:44 PM, "BadassOverlord" notifications@github.com wrote:
Oh. Sorry, I'm very new to Linux and don't really understand it much, I've just been following the commands on installation tutorials. I guess it defaulted to an older version. I'll try updating.
Also, why doesn't the npm install work with a newer version of node? I was having difficulties because npm kept saying I had a legacy version of node, so then I did sudo apt-get install nodejs-legacy and it worked. :/
Very confused haha
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/calzoneman/sync/issues/600#issuecomment-232549399, or mute the thread https://github.com/notifications/unsubscribe/ABf1tdS4ufLY7usE6Ki8rw10l-tLHoMcks5qVbCkgaJpZM4JMDbt .
What bush said. npm
is pretty fragile, you need to start from scratch by deleting node_modules
or else it will get confused.
I recommend you install nodejs from nodesource: https://nodejs.org/en/download/package-manager/
Now it works, thanks so much guys. I was getting a headache trying to solve it myself for these past 2 hours x.x
If anyone else has this problem: http://askubuntu.com/questions/426750/how-can-i-update-my-nodejs-to-the-latest-version
The installation wiki should probably be updated to reflect this. Currently it recommends newer versions but does not explicitly say that v0.10 doesn't work.
Server Problem
If your issue is related to using the website and not about running a server, you can remove this section.
Please confirm whether you've tried the following debugging steps:
npm run build-server
to regeneratelib/
fromsrc/
rm -rf node_modules && npm install
to get a fresh install of dependenciesDescription of the Problem
System Information
node -v
) v0.10.25[Wed Jul 13 2016 20:30:51] TypeError: Cannot read property 'globalRank' of undefined at EventEmitter.<anonymous> (/home/sinusbot/sync/src/user.js:112:20) at EventEmitter.emit (events.js:95:17) at /home/sinusbot/sync/src/io/ioserver.js:232:18 at process._tickDomainCallback (node.js:459:13)