123456789101112131415161718 |
- export NVM_HOME=${IROOT}/nvm
- # Used to avoid nvm's return 2 error.
- # Sourcing this functions if 0 is returned.
- source $NVM_HOME/nvm.sh || 0
- nvm install 0.12.2
- nvm use 0.12.2
- # update npm before app init
- npm install -g npm
- # let us run sails directly
- npm install -g sails
- # reset cache & run app
- npm cache clean
- npm install
- sails lift --port 8080 &
|