radareorg / radare2-webui

webui repository for radare2
93 stars 27 forks source link

Install fails: Unable to find suitable version for material-design-lite #151

Open MightyPork opened 6 years ago

MightyPork commented 6 years ago

build of the 'm' module fails with:

[21:56:11] Finished 'css:stylesheets' after 1.15 s
[21:56:12] bower cached https://github.com/google/material-design-lite.git#1.1.3
[21:56:12] bower validate 1.1.3 against https://github.com/google/material-design-lite.git#~1.1.3
[21:56:12] bower incompatible Unable to find suitable version for material-design-lite
[21:56:12] Can't resolve suitable dependency version.
[21:56:12] Set option { interactive: true } to select.
[21:56:12] 'bower' errored after 2.02 s
[21:56:12] Error in plugin 'gulp-bower'
Message:
    Can't resolve suitable dependency version.
[21:56:13] Finished 'js:app' after 3.21 s
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! radare2-webui-enyo@0.10.2 build: `gulp`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the radare2-webui-enyo@0.10.2 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ondra/.npm/_logs/2017-11-18T20_56_13_488Z-debug.log
make[1]: *** [Makefile:5: build] Error 1
make[1]: Leaving directory '/home/ondra/.config/radare2/r2pm/git/radare2-webui/www/m'
make: *** [Makefile:22: material] Error 2
guyinjeans commented 6 years ago

This seems to be the root cause. Workaround for now is to run bower directly from path/to/r2pm/git/radare2-webui/www/m and force dependency version

Unable to find a suitable version for material-design-lite, please choose one by typing one of the numbers below:
    1) material-design-lite#~1.1.3 which resolved to 1.1.3 and is required by mdl-selectfield#1.0.4
    2) material-design-lite#^1.3.0 which resolved to 1.3.0 and is required by enyo
jfktrey commented 6 years ago

If anyone else comes across this, it was solved for me by doing what @guyinjeans proposed. Exact commands:

$ r2pm -i www-m
(error about material-design-lite)
$ cd /Users/trey/.config/radare2/r2pm/git/radare2-webui/www/m
$ npm install -g bower
$ bower install
$ cd ~
$ r2pm -i www-m

For the record, I chose 1.3.0

radare commented 6 years ago

Material design is already shipped with r2. No need to build your own to use it. But yeah that must be fixed

On 19 Jan 2018, at 07:52, Trey Keown notifications@github.com wrote:

If anyone else comes across this, it was solved for me by doing what @guyinjeans proposed. Exact commands:

$ r2pm -i www-m (error about material-design-lite) $ cd /Users/trey/.config/radare2/r2pm/git/radare2-webui/www/m $ npm install -g bower $ bower install $ cd ~ $ r2pm -i www-m — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.