centos6 部署strongloop
1.安装node
1)下载官方二进制包
cd /opt wget https://nodejs.org/dist/latest-v7.x/node-v7.10.0-linux-x64.tar.gz
2)解压缩
tar -zvx node-v7.10.0-linux-x64.tar.gz mv node-v7.10.0-linux-x64 node
3)配置环境变量
vi /etc/profile
增加
export NODE_HOME=/opt/node export PATH=$NODE_HOME/bin:$PATH
立即生效
source /etc/profile
4)修改npm源
npm config set registry http://registry.npm.taobao.org/
2.安装strongloop
npm install -g --unsafe-perm install strongloop
3.创建loopback应用
mkdir /home/strongloop & cd slc loopback