IoTgo

安装 nodejs


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

使用源码安装

[html]  view plain copy
  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 plain copy
  1. npm config set registry https://registry.npm.taobao.org/  



使用 bower

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

clone github出错:

[html]  view plain copy
  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
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值