bower和bowerrc两个文件都配置了依赖下载的目录,实际操作还是会下载到c盘?

发布于 2022-09-04 12:45:44 字数 7633 浏览 22 评论 0

bower.json

{
  "name": "rik",
  "private": true,
  "ignore": [
    "**/.*",
    "bower_components"
  ],
  "dependencies": {
    "bootstrap": "~3.3.4",
    "jquery": "~2.1.4",
    "leaflet": "~0.7.3",
    "leaflet-omnivore": "~0.3.2",
    "d3": "~3.5.5",
    "leaflet.elevation": "git://github.com/jimmyangel/Leaflet.Elevation#master",
    "Leaflet.MakiMarkers": "~1.0.1",
    "leaflet.markercluster": "git://github.com/Leaflet/Leaflet.markercluster#master",
    "spin.js": "~2.3.0",
    "jquery-stupid-table": "~1.0.1",
    "lightbox2": "~2.8.0",
    "exif-js": "~2.1.1",
    "blueimp-canvas-to-blob": "~2.2.0",
    "country-region-selector": "~0.2.2",
    "Sortable": "~1.4.2",
    "javascript-state-machine": "~2.3.5"
  },
  "resolutions": {
    "leaflet": "0.7.x"
  },
  "authors": [
    "hawer_star <marklow01@126.com>"
  ],
  "description": "1.0",
  "main": "",
  "license": "MIT",
  "homepage": ""
}

.bowerrc

{
  "directory" : "bower_components"
}

安装是运行情况:

D:\chrome_downs\rikitraki-master  (rikitraki@0.6.3)
$ bower install ./
bower leaflet.elevation#master       not-cached git://github.com/jimmyangel/Leaflet.Elevation.git#master
bower leaflet.elevation#master          resolve git://github.com/jimmyangel/Leaflet.Elevation.git#master
bower leaflet.markercluster#master   not-cached git://github.com/Leaflet/Leaflet.markercluster.git#master
bower leaflet.markercluster#master      resolve git://github.com/Leaflet/Leaflet.markercluster.git#master
bower jquery#~2.1.4                  not-cached https://github.com/jquery/jquery-dist.git#~2.1.4
bower jquery#~2.1.4                     resolve https://github.com/jquery/jquery-dist.git#~2.1.4
bower Leaflet.MakiMarkers#~1.0.1     not-cached https://github.com/jseppi/Leaflet.MakiMarkers.git#~1.0.1
bower Leaflet.MakiMarkers#~1.0.1        resolve https://github.com/jseppi/Leaflet.MakiMarkers.git#~1.0.1
bower bootstrap#~3.3.4               not-cached https://github.com/twbs/bootstrap.git#~3.3.4
bower bootstrap#~3.3.4                  resolve https://github.com/twbs/bootstrap.git#~3.3.4
bower leaflet#~0.7.3                 not-cached https://github.com/Leaflet/Leaflet.git#~0.7.3
bower leaflet#~0.7.3                    resolve https://github.com/Leaflet/Leaflet.git#~0.7.3
bower jquery-stupid-table#~1.0.1     not-cached https://github.com/joequery/Stupid-Table-Plugin.git#~1.0.1
bower jquery-stupid-table#~1.0.1        resolve https://github.com/joequery/Stupid-Table-Plugin.git#~1.0.1
bower exif-js#~2.1.1                 not-cached https://github.com/jseidelin/exif-js.git#~2.1.1
bower exif-js#~2.1.1                    resolve https://github.com/jseidelin/exif-js.git#~2.1.1
bower rikitraki-master#*                   copy D:\chrome_downs\rikitraki-master
bower leaflet-omnivore#~0.3.2            cached https://github.com/mapbox/leaflet-omnivore.git#0.3.4
bower leaflet-omnivore#~0.3.2          validate 0.3.4 against https://github.com/mapbox/leaflet-omnivore.git#~0.3.2
bower lightbox2#~2.8.0                   cached https://github.com/lokesh/lightbox2.git#2.8.2
bower lightbox2#~2.8.0                 validate 2.8.2 against https://github.com/lokesh/lightbox2.git#~2.8.0
bower d3#~3.5.5                          cached https://github.com/mbostock-bower/d3-bower.git#3.5.17
bower d3#~3.5.5                        validate 3.5.17 against https://github.com/mbostock-bower/d3-bower.git#~3.5.5
bower spin.js#~2.3.0                     cached https://github.com/fgnass/spin.js.git#2.3.2
bower spin.js#~2.3.0                   validate 2.3.2 against https://github.com/fgnass/spin.js.git#~2.3.0
bower blueimp-canvas-to-blob#~2.2.0      cached https://github.com/blueimp/JavaScript-Canvas-to-Blob.git#2.2.4
bower blueimp-canvas-to-blob#~2.2.0    validate 2.2.4 against https://github.com/blueimp/JavaScript-Canvas-to-Blob.git#~2.2.0
bower country-region-selector#~0.2.2     cached https://github.com/benkeen/country-region-selector.git#0.2.4
bower country-region-selector#~0.2.2   validate 0.2.4 against https://github.com/benkeen/country-region-selector.git#~0.2.2
bower Sortable#~1.4.2                    cached https://github.com/RubaXa/Sortable.git#1.4.2
bower Sortable#~1.4.2                  validate 1.4.2 against https://github.com/RubaXa/Sortable.git#~1.4.2
bower javascript-state-machine#~2.3.5    cached https://github.com/jakesgordon/javascript-state-machine.git#2.3.5
bower javascript-state-machine#~2.3.5  validate 2.3.5 against https://github.com/jakesgordon/javascript-state-machine.git#~2.3.5
bower rik#*                            resolved D:\chrome_downs\rikitraki-master
bower leaflet.elevation#master         download https://github.com/jimmyangel/Leaflet.Elevation/archive/master.tar.gz
bower jquery#~2.1.4                    download https://github.com/jquery/jquery-dist/archive/2.1.4.tar.gz
bower jquery-stupid-table#~1.0.1       download https://github.com/joequery/Stupid-Table-Plugin/archive/1.0.2.tar.gz
bower exif-js#~2.1.1                   download https://github.com/jseidelin/exif-js/archive/v2.1.1.tar.gz
bower jquery#~2.1.4                     extract archive.tar.gz
bower jquery#~2.1.4                    resolved https://github.com/jquery/jquery-dist.git#2.1.4
bower bootstrap#~3.3.4                 download https://github.com/twbs/bootstrap/archive/v3.3.7.tar.gz
bower jquery-stupid-table#~1.0.1        extract archive.tar.gz
bower jquery-stupid-table#~1.0.1   invalid-meta for:C:\Users\ADMINI~1\AppData\Local\Temp\MS-20161014POPO-Administrator\bower\3e466bc2d4cfb0de96281578aa91c887-14788-1NVf2l\bower.json
bower jquery-stupid-table#~1.0.1   invalid-meta The "main" field cannot contain minified files
bower jquery-stupid-table#~1.0.1       resolved https://github.com/joequery/Stupid-Table-Plugin.git#1.0.2
bower leaflet.elevation#master         progress received 0.1MB of 0.1MB downloaded, 89%
bower leaflet.elevation#master         progress received 0.1MB of 0.1MB downloaded, 100%
bower leaflet.elevation#master          extract archive.tar.gz
bower leaflet.elevation#master     invalid-meta for:C:\Users\ADMINI~1\AppData\Local\Temp\MS-20161014POPO-Administrator\bower\0311239e05b92e06a30cb4dffa68fe8b-14788-PedmNk\bower.json
bower leaflet.elevation#master     invalid-meta The "name" is recommended to be lowercase, can contain digits, dots, dashes
bower leaflet.elevation#master     invalid-meta The "main" field cannot contain minified files
bower leaflet.elevation#master     invalid-meta The "main" field cannot contain font, image, audio, or video files
bower leaflet.elevation#master     invalid-meta The "main" field has to contain only 1 file per filetype; found multiple .js files:

["dist/leaflet.elevation-0.0.4.min.js","dist/leaflet.elevation-0.0.4.src.js"]

bower leaflet.elevation#master         resolved git://github.com/jimmyangel/Leaflet.Elevation.git#480d5f7565
bower exif-js#~2.1.1                   progress received 0.1MB of 0.8MB downloaded, 9%
bower exif-js#~2.1.1                   progress received 0.1MB of 0.8MB downloaded, 9%
bower Leaflet.MakiMarkers#~1.0.1   ENORESTARGET No tag found that was able to satisfy ~1.0.1

Additional error details:
Available versions in https://github.com/jseppi/Leaflet.MakiMarkers.git: 3.1.0, 3.0.0, 2.0.0

为什么会去访问这个路径:

bower leaflet.elevation#master     invalid-meta for:C:\Users\ADMINI~1\AppData\Local\Temp\MS-20161014POPO-Administrator\bower\0311239e05b92e06a30cb4dffa68fe8b-14788-PedmNk\bower.json

全都装到c盘用户组这个路径下了,有谁知道怎么修复这个问题哦!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文