IoTgo

来源:互联网 发布:vim linux c 插件 编辑:程序博客网 时间:2024/06/05 19:25

安装 nodejs


不要通过 apt-get 安装,版本不对的话,很多 repo下载不了

使用源码安装

[html] view plaincopy
  1. wget http://nodejs.org/dist/v0.10.32/node-v0.10.32.tar.gz  
  2. tar -zxvf ./node-v0.10.32.tar.gz  
  3. cd node-v0.10.32  
  4. ./configure  
  5. make   
  6. sudo make install  

设置 registry,推荐 taobao的:

[html] view plaincopy
  1. npm config set registry https://registry.npm.taobao.org/  



使用 bower

[html] view plaincopy
  1. sudo npm install bower -g  

clone github出错:

[html] view plaincopy
  1. bower install angular-strap --save  
  2. bower angular-strap#*       not-cached git://github.com/mgcrea/angular-strap.git#*  
  3. bower angular-strap#*          resolve git://github.com/mgcrea/angular-strap.git#*  
  4. bower angular-strap#*          ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/mgcrea/angular-strap.git", exit code of #128  
  5.   
  6.   
  7. Additional error details:  
  8. fatal: unable to connect to github.com:  
  9. github.com[0: 192.30.252.131]: errno=Connection timed out  


解决方法是:

git config --global url."https://github.com".insteadOf git://github.com


apt-get install mongodb

0 0
原创粉丝点击