Bower Error

2663
3
03-07-2016 09:49 AM
by Anonymous User
Not applicable

Hello -

I am trying to download a local copy of v3.16 of the JavaScript API. I used to use Slurp and it took me a while to grasp Grunt and all of the configuration files. I thought with Bower I could run one command and have the minified files. But when I try to run 'bower install --save arcgis-js-api' from the command line I get the following error:

bower    ECONFLICT Unable to find suitable version for dojo

I have no idea how to deal with that.

Tags (1)
0 Kudos
3 Replies
ReneRubalcava
Frequent Contributor

That should give you a dialog similar to this.

Unable to find a suitable version for dojo, please choose one:
    1) dojo#v1.10.4/esri-3.14.0 which resolved to v1.10.4/esri-3.14.0 and is required by arcgis-js-api#3.16.0
    2) dojo#>=1.8.1 which resolved to 1.10.4 and is required by dstore#1.1.0

Prefix the choice with ! to persist it to bower.json

? Answer

Enter "!1" and it will save your choice in the bower.json file.

You could set up a bower.json ahead of time like the one here.

https://github.com/Esri/jsapi-resources/blob/master/bower/dojo/bower.json

That could help.

Thanks!

0 Kudos
by Anonymous User
Not applicable

I just re-ran it to see the error again and try your suggestion, and it ran fine...so I don't know what I did before!

0 Kudos
JasonBaker4
New Contributor

I have the same problem. "bower    ECONFLICT Unable to find suitable version for dojo"

I don't see an option to select a dojo version. The ECONFLICT is the last line before going back to command prompt $. I'm using gitbash on windows.

0 Kudos