bower 安装
** 官网http://bower.io**
cnpm install bootstrap
[livingbody@localhost ~]$ sudo cnpm install -g bower [sudo] livingbody 的密码: Downloading bower to /usr/local/node-v10.13.0-linux-x64/lib/node_modules/bower_tmp Copying /usr/local/node-v10.13.0-linux-x64/lib/node_modules/bower_tmp/_bower@1.8.4@bower to /usr/local/node-v10.13.0-linux-x64/lib/node_modules/bower Installing bower's dependencies to /usr/local/node-v10.13.0-linux-x64/lib/node_modules/bower/node_modules All packages installed (used 3ms(network 1ms), speed 0B/s, json 0(0B), tarball 0B) [bower@1.8.4] link /usr/local/node-v10.13.0-linux-x64/bin/bower@ -> /usr/local/node-v10.13.0-linux-x64/lib/node_modules/bower/bin/bower [livingbody@localhost ~]$ bower install bootstrap bower not-cached https://github.com/twbs/bootstrap.git#* bower resolve https://github.com/twbs/bootstrap.git#* bower download https://github.com/twbs/bootstrap/archive/v4.1.3.tar.gz bower extract bootstrap#* archive.tar.gz bower resolved https://github.com/twbs/bootstrap.git#4.1.3 bower install bootstrap#4.1.3 [livingbody@localhost bootstraptest]$ cnpm install bootstrap@3 ✔ Installed 1 packages ✔ Run 0 scripts Recently updated (since 2018-12-09): 1 packages (detail see file /home/livingbody/bootstraptest/node_modules/.recently_updates.txt) ✔ All packages installed (1 packages installed from npm registry, used 3s(network 3s), speed 220.12kB/s, json 1(5.78kB), tarball 555.74kB) [livingbody@localhost bootstraptest]$ cnpm install composer ✔ Installed 1 packages ✔ Run 0 scripts ✔ All packages installed (3 packages installed from npm registry, used 3s(network 3s), speed 9.01kB/s, json 3(7.04kB), tarball 19.04kB)
what’s included?
bootstrap/ ├── css/ │ ├── bootstrap.css │ ├── bootstrap.css.map │ ├── bootstrap.min.css │ ├── bootstrap.min.css.map │ ├── bootstrap-theme.css │ ├── bootstrap-theme.css.map │ ├── bootstrap-theme.min.css │ └── bootstrap-theme.min.css.map ├── js/ │ ├── bootstrap.js │ └── bootstrap.min.js └── fonts/ ├── glyphicons-halflings-regular.eot ├── glyphicons-halflings-regular.svg ├── glyphicons-halflings-regular.ttf ├── glyphicons-halflings-regular.woff └── glyphicons-halflings-regular.woff2