1. 安装 bower
~~~
Microsoft Windows [版本 10.0.17134.112]
(c) 2018 Microsoft Corporation。保留所有权利。
C:\Users\Administrator>path
PATH=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\TortoiseSVN\bin;C:\Users\Administrator\AppData\Local\Atlassian\SourceTree\git_local;D:\phpStudy\PHPTutorial\php\php-7.2.1-nts;D:\phpStudy\PHPTutorial\MySQL\bin;C:\Program Files\nodejs\;C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps;C:\Users\Administrator\AppData\Roaming\npm
C:\Users\Administrator>node --version
v8.11.3
C:\Users\Administrator>npm install -g bower
npm WARN deprecated bower@1.8.4: We don't recommend using Bower for new projects. Please consider Yarn and Webpack or Parcel. You can read how to migrate legacy project here: https://bower.io/blog/2017/how-to-migrate-away-from-bower/
C:\Users\Administrator\AppData\Roaming\npm\bower -> C:\Users\Administrator\AppData\Roaming\npm\node_modules\bower\bin\bower
+ bower@1.8.4
added 1 package in 9.975s
C:\Users\Administrator>
~~~
2. 安装
~~~
# installs the project dependencies listed in bower.json
PS D:\phpStudy\PHPTutorial\WWW\workspace\fastadmin> bower install
bower bootstrap#^3.3.7 ENOGIT git is not installed or not in the PATH
PS D:\phpStudy\PHPTutorial\WWW\workspace\fastadmin>
~~~