fis-components / spec

Fis components specification

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

安装公共库组件失败

kainy opened this issue · comments

执行:“ fis install bootst rap-datepicker”,无法正常安装组件;
报错信息是:“ [ERROR] unable to download component [bootstrap-datepicker@latest] from [http:/
/fis.baidu.com/repos/component/bootstrap-datepicker/latest.tar], error [getaddri
nfo EAGAIN]”,
浏览器直接打开“http:/
/fis.baidu.com/repos/component/bootstrap-datepicker/latest.tar” 这个连接 返回404,请问是什么原因呢。

请问你的 fis 版本是啥?预期应该是这样的。我刚试了下也是没问题的.

~/sanbox cd test
~/sanbox/test fis install bootstrap-datepicker

 [WARNI] Please copy the following rule to you `roadmap.path`
 settings in `fis-conf.js`:
{
    reg: /^\/components\/.*\.js$/i,
    isMod: true,
    jswrapper: {
        type: 'amd'
    }
}

Installed
├── github:fis-components/bootstrap-datepicker@v1.4.0
├── github:fis-components/bootstrap@v3.3.4
└── github:fis-components/jquery@2.1.0
~/sanbox/test tree components
components
├── bootstrap
│   ├── README.md
│   ├── affix.js
│   ├── alert.js
│   ├── bootstrap.js
│   ├── button.js
│   ├── carousel.js
│   ├── collapse.js
│   ├── component.json
│   ├── css
│   │   ├── bootstrap-theme.css
│   │   ├── bootstrap-theme.css.map
│   │   ├── bootstrap.css
│   │   └── bootstrap.css.map
│   ├── dropdown.js
│   ├── fonts
│   │   ├── glyphicons-halflings-regular.eot
│   │   ├── glyphicons-halflings-regular.svg
│   │   ├── glyphicons-halflings-regular.ttf
│   │   ├── glyphicons-halflings-regular.woff
│   │   └── glyphicons-halflings-regular.woff2
│   ├── modal.js
│   ├── popover.js
│   ├── scrollspy.js
│   ├── tab.js
│   ├── tooltip.js
│   └── transition.js
├── bootstrap-datepicker
│   ├── README.md
│   ├── bootstrap-datepicker.css
│   ├── bootstrap-datepicker.js
│   ├── bootstrap-datepicker.standalone.css
│   ├── bootstrap-datepicker3.css
│   ├── bootstrap-datepicker3.standalone.css
│   └── component.json
└── jquery
    ├── README.md
    ├── component.json
    └── jquery.js

5 directories, 34 files
~/sanbox/test

解决了, 是配置问题,抱歉。

You are welcome