Can't run Volumio UI on ubuntu

Hi,
I went through the process of installing the VolumioUI on Ubuntu
as explained in volumio.github.io/docs/Developm … nment.html

I get the following err when running gulp

[code]
/Volumio2-UI$ gulp serve --theme=“volumio”

/home/yossi/elia/Volumio2-UI/gulp/build.js:127
fs.readFileSync(`${conf.paths.src}/app/themes/${themeSelected}/assets/va
^
SyntaxError: Unexpected token ILLEGAL
at Module._compile (module.js:439:25)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at /home/yossi/elia/Volumio2-UI/gulpfile.js:19:3
at Array.map (native)
at Object. (/home/yossi/elia/Volumio2-UI/gulpfile.js:18:4)
at Module._compile (module.js:456:26)[/code]

I did the same process on MAC with no problems.

This is very strange since it complain on a syntax error

Please help.

I was able to solve it by search-and-replace, but I leave this question open because I would like to know if it can be solved with a config

but now I get:

[code]gulp serve --theme=“volumio”

Error: Cannot find module ‘zeparser’
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/yossi/elia/timuleui/node_modules/karma/node_modules/socket.io/node_modules/socket.io-client/node_modules/active-x-obfuscator/index.js:1:78)
at Module._compile (module.js:456:26)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)[/code]

I tried again, from scratch and I get:

[code]
/Volumio2-UI$ gulp serve --theme=“volumio”
[23:52:16] Using gulpfile ~/elia/Volumio2-UI/gulpfile.js
[23:52:16] Starting ‘angularConfig’…
[23:52:17] Starting ‘styles’…
[23:52:17] ‘styles’ errored after 78 ms
[23:52:17] Error: Cannot find module ‘browserslist’
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/home/yossi/elia/Volumio2-UI/node_modules/gulp-autoprefixer/node_modules/autoprefixer-core/lib/autoprefixer.js:5:18)
at Object. (/home/yossi/elia/Volumio2-UI/node_modules/gulp-autoprefixer/node_modules/autoprefixer-core/lib/autoprefixer.js:88:4)
at Module._compile (module.js:456:26)
at Object.Module._extensions…js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
[23:52:17] Finished ‘angularConfig’ after 167 ms
[23:52:17] gulp-inject 37 files into index.scss.

/home/yossi/elia/Volumio2-UI/node_modules/gulp-sass/node_modules/vinyl-sourcemaps-apply/node_modules/source-map/lib/source-map/source-map-generator.js:275
throw new Error('Invalid mapping: ’ + JSON.stringify({
^
Error: Invalid mapping: {“generated”:{“line”:1633,“column”:17},“source”:"…/…/bower_components/bootstrap-sass-official/assets/stylesheets/bootstrap/mixins/_clearfix.scss",“original”:{“line”:14,“column”:-16},“name”:null}
at SourceMapGenerator_validateMapping [as _validateMapping] (/home/yossi/elia/Volumio2-UI/node_modules/gulp-sass/node_modules/vinyl-sourcemaps-apply/node_modules/source-map/lib/source-map/source-map-generator.js:275:15)
at SourceMapGenerator_addMapping [as addMapping] (/home/yossi/elia/Volumio2-UI/node_modules/gulp-sass/node_modules/vinyl-sourcemaps-apply/node_modules/source-map/lib/source-map/source-map-generator.js:105:14)
at /home/yossi/elia/Volumio2-UI/node_modules/gulp-sass/node_modules/vinyl-sourcemaps-apply/node_modules/source-map/lib/source-map/source-map-generator.js:76:19
at Array.forEach (native)
at SourceMapConsumer_eachMapping [as eachMapping] (/home/yossi/elia/Volumio2-UI/node_modules/gulp-sass/node_modules/vinyl-sourcemaps-apply/node_modules/source-map/lib/source-map/source-map-consumer.js:570:10)
at Function.SourceMapGenerator_fromSourceMap [as fromSourceMap] (/home/yossi/elia/Volumio2-UI/node_modules/gulp-sass/node_modules/vinyl-sourcemaps-apply/node_modules/source-map/lib/source-map/source-map-generator.js:52:26)
at applySourceMap (/home/yossi/elia/Volumio2-UI/node_modules/gulp-sass/node_modules/vinyl-sourcemaps-apply/index.js:22:40)
at filePush (/home/yossi/elia/Volumio2-UI/node_modules/gulp-sass/index.js:83:9)
at Object.callback (/home/yossi/elia/Volumio2-UI/node_modules/gulp-sass/index.js:123:9)
at options.success (/home/yossi/elia/Volumio2-UI/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:300:32)[/code]

1 Like

The solution is to upgrade node.js.

Here is how (Ubuntu 14), see askubuntu.com/questions/426750/ … st-version

[code]
sudo npm cache clean -f
sudo npm install -g n
sudo n stable

sudo ln -sf /usr/local/n/versions/node//bin/node /usr/bin/nodejs[/code]

node --version
v8.2.1

and I still get an error:

/Volumio2-UI$ gulp serve --theme="volumio"
/home/yossi/elia/Volumio2-UI/node_modules/karma/node_modules/socket.io/lib/store.js:35
Store.prototype.__proto__ = EventEmitter.prototype;
                                        ^

TypeError: Cannot read property 'prototype' of undefined
    at Object.<anonymous> (/home/yossi/elia/Volumio2-UI/node_modules/karma/node_modules/socket.io/lib/store.js:35:41)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/yossi/elia/Volumio2-UI/node_modules/karma/node_modules/socket.io/lib/manager.js:16:13)
    at Module._compile (module.js:569:30)

Please use nodejs 6.1 version