Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Note Specific Versions of NodeJs etc. required #489

Closed
tanabi opened this issue Mar 7, 2018 · 8 comments
Closed

Note Specific Versions of NodeJs etc. required #489

tanabi opened this issue Mar 7, 2018 · 8 comments

Comments

@tanabi
Copy link

tanabi commented Mar 7, 2018

Hey there;

As someone new to Volumio (and nodeJS in general to be honest) I went ahead and downloaded the latest and greatest of everything and got a weird error when trying to use gulp:

`
tore.prototype.proto = EventEmitter.prototype;
^

TypeError: Cannot read property 'prototype' of undefined
at Object. (/Users/xxx/work/Volumio2-UI/node_modules/karma/node_modules/socket.io/lib/store.js:35:42)
at Module._compile (module.js:662:30)
at Object.Module._extensions..js (module.js:673:10)
at Module.load (module.js:575:32)
at tryModuleLoad (module.js:515:12)
at Function.Module._load (module.js:507:3)
at Module.require (module.js:606:17)
at require (internal/module.js:11:18)
at Object. (/Users/xxx/work/Volumio2-UI/node_modules/karma/node_modules/socket.io/lib/manager.js:16:13)
at Module._compile (module.js:662:30)
`

Doing some research, this is because I had installed node 9.7.1 but Volumio needs node 6.11.0. This should be documented clearly, or better yet update the software to work with newer node :)

@tanabi
Copy link
Author

tanabi commented Mar 8, 2018

The easiest way to develop (if anyone comes across this breadcrumb) is to use the x86 vm with your virtualizer of choice (I used virtual box).

These commands worked for me:

sudo npm install -g bower
sudo npm install -g gulp
npm install
bower install
npm install node-sass
gulp build scripts --theme="volumio"

Leaving "scripts" off the gulp build line as in the documentation errors for me 100% of the time and only gives me a partial build in dist. "node-sass" wouldn't install on my PI for some reason, had to be on the x86. This is a really difficult project to get started on from nothing :)

@robcee
Copy link

robcee commented Aug 2, 2018

I just ran into this running through setup of Volumio2-UI for the first time. No mention of requiring a virtual box in any of the setup documentation. Kind of a show-stopper as I don't really feel like debugging included node packages on my system to get this working.

@robcee
Copy link

robcee commented Aug 2, 2018

"process.EventEmitter is deprecated"
https://github.com/times/cardkit/issues/53

Curiously, the version of node installed on my RaspberryPi is 8.11.1 and I'm using 8.11.3 locally. Either the installed socket.io package was patched on the server or there's something funny happening.

@robcee
Copy link

robcee commented Aug 2, 2018

and the fix:
LearnBoost/websocket.io#55

I'm wondering if the "karma" package needs to be updated or patched.

@robcee
Copy link

robcee commented Aug 2, 2018

I did a little more digging and learned a bit about the karma package and its dependents. Presumably, this is the unit testing framework for the front-end. It would be nice to have an updated version there, but updating will probably affect whatever unittests are in place, so, it could be an expensive update. Still investigating...

@tanabi
Copy link
Author

tanabi commented Aug 4, 2018

I actually gave up on volumio and made my own player. While volumio is a total solution and its really cool ... I just wanted something with a next/prev/start/stop button that plays MP3s randomly out of a directory and works nice on a small screen (adafruit's 2.8" tft).

@robcee
Copy link

robcee commented Aug 5, 2018

The Solution for me was to install Node.js version 6.9.5 and npm 3.10.10. I'm adding a "maximum" version requirement to the documentation as the current install link points to latest 8.x "LTS" version.

@volumio
Copy link
Owner

volumio commented Aug 20, 2018

Thanks

@volumio volumio closed this as completed Aug 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants