- 全局环境中安装bower
~ sakura$ sudo npm install -g bower
- 查看bower版本
~ sakura$ bower -v
- 进入项目目录
~ sakura$ cd /Users/sakura/study/react/FirstApp
- 安装babel
FirstApp sakura$ bower install babel
- 安装react
FirstApp sakura$ bower install react
~ sakura$ sudo npm install -g bower
~ sakura$ bower -v
~ sakura$ cd /Users/sakura/study/react/FirstApp
FirstApp sakura$ bower install babel
FirstApp sakura$ bower install react