Saturday, January 18, 2020

install nvm in mac


install nvm using brew (mac)
brew install nvm
nvm ls-remote    # find the version you want
nvm install v7.10.0
nvm alias default v7.10.0    # set default node version on a shell

New ionic 3 project startup



New ionic 3 project
https://ionicframework.com/docs/cli/commands/start


ionic start
ionic start --list
ionic start myApp
ionic start myApp blank
ionic start myApp tabs --cordova
ionic start myApp tabs --capacitor
ionic start myApp super --type=ionic-angular
ionic start myApp blank --type=ionic1
ionic start cordovaApp tabs --cordova
ionic start "My App" blank
ionic start "Conference App" https://github.com/ionic-team/ionic-conference-app
Inputs

32 bit node.js installation


nvm install 8.12.0 32 (32 bits)

multiple version of node installation


* https://www.sitepoint.com/quick-tip-multiple-versions-node-nvm/
nvm ls-remote
nvm ls available (windows)

* see list of available node version in pc
nvm list

* install old version of node
nvm install 8.12.0

* Fortunately, when installing a new Node.js version, you can reinstall the npm global packages from a specific version. For example:

nvm install v9.0.0 --reinstall-packages-from=8.9

1)  nvm to manage node versions
2) npm for packages



nvm use latest
npm install -g ionic

nvm use 8.12.0
npm uninstall -g ionic
npm install -g ionic@3.9.2


For library adding
npm install --save

--save adds to package

nvm install 8.12.0 32 (32 bits)

Gulp Meaning


* gulp meaning

Gulp is a task runner that uses Node. js as a platform. It purely uses the JavaScript code and helps to run front-end tasks and large-scale web applications. Gulp builds system automated tasks like CSS and HTML minification, concatenating library files, and compiling the SASS files.

https://en.wikipedia.org/wiki/Gulp.js
https://www.tutorialspoint.com/gulp/index.htm

install nvm for windows

download nvm for windows from
https://github.com/coreybutler/nvm-windows

After installation use some commands

nvm use 4.4.0
npm install gulp-cli -g
nvm use 0.10.33
npm install gulp-cli -g

Install Curl, apache, vesta control panel In Debian Linux

Install Apache

sudo apt-get install apache2

Uninstall

sudo apt-get --purge remove apache2
sudo apt-get remove apache2-common



Install curl in debian linux

$sudo apt install curl

OR
$sudo apt-get install curl



How to install Vesta Control panel
1. Connect to your server as root via SSH
ssh root@your.server-name


2. Download installation script
curl -O http://vestacp.com/pub/vst-install.sh


3. Run it
bash vst-install.sh