nukeop / nuclear

Streaming music player that finds free music for you
https://nuclear.js.org/
GNU Affero General Public License v3.0
11.93k stars 1.03k forks source link

Can't get it to work at all #483

Closed steve-biggs-fox closed 4 years ago

steve-biggs-fox commented 4 years ago

Hello,

Great idea. Unfortunately, I cannot get it to work at all.

First, it was difficult to find the installation instructions. Consider having an INSTALL file at the top level of the repo, or a more obvious Install section in the README.

Next, it was difficult to get docker working. In the end, I have to turn off my VPN to get docker to start. Maybe some information about this might be helpful for those unfamiliar with docker.

Then, I followed the instructions in the README:

$ xhost SI:localuser:root
$ sudo docker-compose up dev

At first, this failed because of the wrong version in the docker-compose.yml file - I had to change this from 3.7 to 2.0 as I have docker-compose version 1.8.0. Maybe the correct version could be determined automatically?

Once corrected, this started a new container with the nuclear logo and a console. Unfortunately, this did nothing - there was only the logo - no search bar, no menus, no nothing. Clicking did nothing. Also, the console should probably be disabled by default. I noticed in the terminal where I ran the commands that it had the following error messages:

dev_1      | ERROR in ./node_modules/semantic-ui-react/dist/es/addons/Pagination/PaginationItem.js
dev_1      | Module not found: Error: Can't resolve 'keyboard-key' in '/nuclear/node_modules/semantic-ui-react/dist/es/addons/Pagination'
dev_1      |  @ ./node_modules/semantic-ui-react/dist/es/addons/Pagination/PaginationItem.js 9:0-39 44:10-21 44:37-48
dev_1      |  @ ./node_modules/semantic-ui-react/dist/es/index.js
dev_1      |  @ ./app/containers/HttpApiUrl/index.js
dev_1      |  @ ./app/constants/settings.js
dev_1      |  @ ./app/App.js
dev_1      |  @ ./app/index.js
dev_1      |  @ multi react-hot-loader/patch webpack-dev-server/client?http://localhost:8080 webpack/hot/only-dev-server ./app/index.js
dev_1      | 
dev_1      | ERROR in ./node_modules/semantic-ui-react/dist/es/addons/Portal/Portal.js
dev_1      | Module not found: Error: Can't resolve 'keyboard-key' in '/nuclear/node_modules/semantic-ui-react/dist/es/addons/Portal'
dev_1      |  @ ./node_modules/semantic-ui-react/dist/es/addons/Portal/Portal.js 10:0-39 60:10-21 60:37-48
dev_1      |  @ ./node_modules/semantic-ui-react/dist/es/addons/Portal/index.js
dev_1      |  @ ./node_modules/semantic-ui-react/dist/es/modules/Modal/Modal.js
dev_1      |  @ ./node_modules/semantic-ui-react/dist/es/modules/Modal/index.js
dev_1      |  @ ./node_modules/semantic-ui-react/dist/es/addons/Confirm/Confirm.js
dev_1      |  @ ./node_modules/semantic-ui-react/dist/es/addons/Confirm/index.js
dev_1      |  @ ./node_modules/semantic-ui-react/dist/es/index.js
dev_1      |  @ ./app/containers/HttpApiUrl/index.js
dev_1      |  @ ./app/constants/settings.js
dev_1      |  @ ./app/App.js
dev_1      |  @ ./app/index.js
dev_1      |  @ multi react-hot-loader/patch webpack-dev-server/client?http://localhost:8080 webpack/hot/only-dev-server ./app/index.js
dev_1      | 
dev_1      | ERROR in ./node_modules/semantic-ui-react/dist/es/modules/Dropdown/Dropdown.js
dev_1      | Module not found: Error: Can't resolve 'keyboard-key' in '/nuclear/node_modules/semantic-ui-react/dist/es/modules/Dropdown'
dev_1      |  @ ./node_modules/semantic-ui-react/dist/es/modules/Dropdown/Dropdown.js 36:0-39 92:10-21 92:37-48 104:56-67 104:107-118 105:23-34 115:10-21 115:37-48 123:17-28 124:22-33 124:45-56 160:10-21 160:37-48 183:10-21 183:37-48
dev_1      |  @ ./node_modules/semantic-ui-react/dist/es/modules/Dropdown/index.js
dev_1      |  @ ./node_modules/semantic-ui-react/dist/es/index.js
dev_1      |  @ ./app/containers/HttpApiUrl/index.js
dev_1      |  @ ./app/constants/settings.js
dev_1      |  @ ./app/App.js
dev_1      |  @ ./app/index.js
dev_1      |  @ multi react-hot-loader/patch webpack-dev-server/client?http://localhost:8080 webpack/hot/only-dev-server ./app/index.js
dev_1      | 
dev_1      | ERROR in ./node_modules/semantic-ui-react/dist/es/modules/Rating/RatingIcon.js
dev_1      | Module not found: Error: Can't resolve 'keyboard-key' in '/nuclear/node_modules/semantic-ui-react/dist/es/modules/Rating'
dev_1      |  @ ./node_modules/semantic-ui-react/dist/es/modules/Rating/RatingIcon.js 11:0-39 44:14-25 45:13-24 46:13-24
dev_1      |  @ ./node_modules/semantic-ui-react/dist/es/index.js
dev_1      |  @ ./app/containers/HttpApiUrl/index.js
dev_1      |  @ ./app/constants/settings.js
dev_1      |  @ ./app/App.js
dev_1      |  @ ./app/index.js
dev_1      |  @ multi react-hot-loader/patch webpack-dev-server/client?http://localhost:8080 webpack/hot/only-dev-server ./app/index.js
dev_1      | 
dev_1      | ERROR in ./node_modules/semantic-ui-react/dist/es/modules/Search/Search.js
dev_1      | Module not found: Error: Can't resolve 'keyboard-key' in '/nuclear/node_modules/semantic-ui-react/dist/es/modules/Search'
dev_1      |  @ ./node_modules/semantic-ui-react/dist/es/modules/Search/Search.js 22:0-39 67:10-21 67:37-48 74:14-25 75:13-24 82:13-24 95:10-21 95:37-48
dev_1      |  @ ./node_modules/semantic-ui-react/dist/es/modules/Search/index.js
dev_1      |  @ ./node_modules/semantic-ui-react/dist/es/index.js
dev_1      |  @ ./app/containers/HttpApiUrl/index.js
dev_1      |  @ ./app/constants/settings.js
dev_1      |  @ ./app/App.js
dev_1      |  @ ./app/index.js
dev_1      |  @ multi react-hot-loader/patch webpack-dev-server/client?http://localhost:8080 webpack/hot/only-dev-server ./app/index.js
dev_1      | Child html-webpack-plugin for "index.html":
dev_1      |      1 asset
dev_1      |     Entrypoint undefined = index.html
dev_1      |     [./node_modules/html-webpack-plugin/lib/loader.js!./index.html] 2.56 KiB {0} [built]
dev_1      |     [./node_modules/lodash/lodash.js] 528 KiB {0} [built]
dev_1      |     [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {0} [built]
dev_1      | ℹ 「wdm」: Failed to compile.

Unfortunately, I don't know how to fix those errors.

So, next I tried the other instructions:

$ npm run build:dist
$ npm run electron:prod

However, the first command fails with the following error messages:

> nuclear@0.5.1 build:dist /home/steve/Programs/nuclear
> webpack --progress --colors --env=prod && cp loader.css dist

/usr/bin/env: ‘node’: No such file or directory

npm ERR! Linux 4.4.0-154-lowlatency
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "build:dist"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! nuclear@0.5.1 build:dist: `webpack --progress --colors --env=prod && cp loader.css dist`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the nuclear@0.5.1 build:dist script 'webpack --progress --colors --env=prod && cp loader.css dist'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the nuclear package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     webpack --progress --colors --env=prod && cp loader.css dist
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs nuclear
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls nuclear
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/steve/Programs/nuclear/npm-debug.log

I tried installing some sort of extra node program to sort out the "/usr/bin/env: ‘node’: No such file or directory" bit but I don't know what I need to install as there are so many node packages. Maybe a list of dependencies would be helpful, i.e. a list of packages to install.

Anyway, that's what I've tried and I can't get it working. Any ideas? Thanks

trekiteasy commented 4 years ago

Hi, what about looking in the assets of the latest release ? You will find files for the different OS. https://github.com/nukeop/nuclear/releases/tag/v0.5.1

nukeop commented 4 years ago

For the docker setup, you'll need to update docker-compose. It also looks like your node and npm are out of date, you'll need node 8 (at least, preferably LTS) and the latest npm as well.

The dev tools open automatically only in the dev version. The released binaries won't show you the console. Try looking in the releases tab for your operating system's binaries. If those don't work, let me know.