2017-05-23 1 views
0

Je reçois l'erreur suivante lorsque vous essayez d'exécuter la commande suivante: bower install arcgis-js-apiBower Installation de ne pas arcgis-js-api (incapable de trouver la version adaptée pour dojo)

J'ai essayé d'installer dans un nouveau répertoire et aussi après avoir créé un fichier de base bower.json. Recherche sur le Web a trouvé des personnes avec le problème, mais pas de solutions postées sur la façon de résoudre.

{ 
    "name": "arcgis-js-api-sample-app", 
    "version": "1.0.0", 
    "license": "Apache-2.0", 
    "dependencies": { 
     "esri": "arcgis-js-api#3.15.0" 
    }, 
    "resolutions": { 
     "dojo": "v1.10.4/esri-3.14.0" 
    } 
} 

Message d'erreur: charmille installer ECONFLICT arcgis-js-api Impossible de trouver la version adaptée pour dojo

Trace complète:

$ bower install arcgis-js-api 
bower arcgis-js-api#*   cached https://github.com/Esri/arcgis-js-api.git#4.3.1 
bower arcgis-js-api#*   validate 4.3.1 against https://github.com/Esri/arcgis-js-api.git#* 
bower dojo#v1.12.1/esri-3.20.0 cached https://github.com/Esri/dojo.git#v1.12.1/esri-3.20.0 
bower dojo#v1.12.1/esri-3.20.0   validate v1.12.1/esri-3.20.0 against https://github.com/Esri/dojo.git#v1.12.1/esri-3.20.0 
bower util#v1.12.1/esri-3.20.0   cached https://github.com/Esri/dojo-util.git#v1.12.1/esri-3.20.0 
bower util#v1.12.1/esri-3.20.0   validate v1.12.1/esri-3.20.0 against https://github.com/Esri/dojo-util.git#v1.12.1/esri-3.20.0 
bower dojox#v1.12.1/esri-3.20.0   cached https://github.com/Esri/dojox.git#v1.12.1/esri-3.20.0 
bower dojox#v1.12.1/esri-3.20.0  validate v1.12.1/esri-3.20.0 against https://github.com/Esri/dojox.git#v1.12.1/esri-3.20.0 
bower dgrid#v1.1.0/esri-3.20.0   cached https://github.com/Esri/dgrid.git#v1.1.0/esri-3.20.0 
bower dgrid#v1.1.0/esri-3.20.0   validate v1.1.0/esri-3.20.0 against https://github.com/Esri/dgrid.git#v1.1.0/esri-3.20.0 
bower dijit#v1.12.1/esri-3.20.0   cached https://github.com/Esri/dijit.git#v1.12.1/esri-3.20.0 
bower dijit#v1.12.1/esri-3.20.0  validate v1.12.1/esri-3.20.0 against https://github.com/Esri/dijit.git#v1.12.1/esri-3.20.0 
bower dstore#1.1.1      cached https://github.com/SitePen/dstore.git#1.1.1 
bower dstore#1.1.1      validate 1.1.1 against https://github.com/SitePen/dstore.git#1.1.1 
bower moment#2.17.1      cached https://github.com/moment/moment.git#2.17.1 
bower moment#2.17.1     validate 2.17.1 against https://github.com/moment/moment.git#2.17.1 
bower dojo#>=1.8.9      cached https://github.com/dojo/dojo.git#1.12.2 
bower dojo#>=1.8.9      validate 1.12.2 against https://github.com/dojo/dojo.git#>=1.8.9 
bower dijit#1.12.1      cached https://github.com/dojo/dijit.git#1.12.1 
bower dijit#1.12.1      validate 1.12.1 against https://github.com/dojo/dijit.git#1.12.1 
bower dojox#1.12.1      cached https://github.com/dojo/dojox.git#1.12.1 
bower dojox#1.12.1      validate 1.12.1 against https://github.com/dojo/dojox.git#1.12.1 
bower dojo-themes#1.12.1     cached https://github.com/dojo/themes.git#1.12.1 
bower dojo-themes#1.12.1    validate 1.12.1 against https://github.com/dojo/themes.git#1.12.1 
bower dojo#>=1.8.1      cached https://github.com/dojo/dojo.git#1.12.2 
bower dojo#>=1.8.1      validate 1.12.2 against https://github.com/dojo/dojo.git#>=1.8.1 
bower dojo#1.12.1      cached https://github.com/dojo/dojo.git#1.12.1 
bower dojo#1.12.1      validate 1.12.1 against https://github.com/dojo/dojo.git#1.12.1 
bower         ECONFLICT Unable to find suitable version for dojo 

Répondre

1

J'ai trouvé une solution. Cela semble être un problème sur les machines Windows lors de l'utilisation des interfaces gitBash. gitBash n'autorise pas l'interaction de l'utilisateur pour répondre aux invites de sélection de versions spécifiques des dépendances et affiche simplement le message d'erreur. Je suis passé à l'utilisation de l'invite gitCMD au lieu de gitBash. Une fois que vous êtes passé à gitCMD et que vous avez exécuté la même commande bower install arcgis-js-api, les questions sur la sélection des dépendances sont apparues et j'ai réussi à les sélectionner et à terminer l'installation.

J'espère que cela aide quelqu'un d'autre à utiliser la fenêtre sur les fenêtres.

0

Je n'ai pas été en mesure de reproduire ce problème . Si je fais juste bower install arcgis-js-api, on me donne la possibilité de choisir mes résolutions. Si j'utilise le bower.json que vous avez posté, j'obtiens un avertissement, mais aucune erreur.

Please note that, esri#3.15.0 depends on dojo#v1.10.4/esri-3.14.0 which resolved to dojo#v1.10.4/esri-3.14.0 dstore#1.1.0 depends on dojo#>=1.8.1 which resolved to dojo#1.12.2 Resort to using dojo#v1.10.4/esri-3.14.0 which resolved to dojo#v1.10.4/esri-3.14.0 Code incompatibilities may occur.

C'est très bien, il est juste Bower donner un avertissement à jouer en toute sécurité. Avez-vous essayé bower cache clean?

+0

Merci pour la réponse. Je n'avais pas essayé de nettoyer le cache de bower, mais j'ai l'impression que c'était un problème distinct et j'ai pu trouver une solution que je viens de publier. – pureblur