Learn the powerful enterprise adaptable database:

Getting Started With ADABAS & Natural

Showing posts with label Mac. Show all posts
Showing posts with label Mac. Show all posts

Monday, August 12, 2019

How To: Install PHP Composer on Mac OSX


.
  1. Open a terminal and navigate to your user directory, ie cd /User/<USER_NAME>/
  2. Run this command shown below to download Composer. This will create a Phar (PHP Archive) file called composer.phar:
    curl -sS https://getcomposer.org/installer | php
    
  3. Now we move composer.phar file to a directory
    sudo mv composer.phar /usr/local/bin/
  4. We want to run Composer with having to be root al the time, so we need to change the permissions:
    sudo chmod 755 /usr/local/bin/composer.phar
    

  5. Next, we need to let Bash know where to execute Composer: 
    nano ~/.bash_profile
    
    Add this line below to bash_profile and save
     
    alias composer="php /usr/local/bin/composer.phar"
    
    Note: If you want to save the changes you've made in Nano Text Editor, press Ctrl + O . To exit Nano, type Ctrl + X . If you ask nano to exit from a modified file, it will ask you if you want to save it.

    and then run this command:
     
    source ~/.bash_profile

  6. Finally, run: 
    composer --version
    

.
From: https://duvien.com/blog/installing-composer-mac-osx

Tuesday, October 16, 2018

Thursday, October 26, 2017

Install Node For Mac


.

How to Install Node and NPM

Installing Node.js and NPM is pretty straightforward using Homebrew. Homebrew handles downloading, unpacking and installing Node and NPM on your system. The whole process (after you have XCode and Homebrew installed) should only take you a few minutes.

Open the Terminal app and type...

 brew install node

Sit back and wait. Homebrew downloads some files and installs them. And that’s it.

To make sure you have Node and NPM installed, run two simple commands to see what version of each is installed:

To see if Node is installed, type node -v in Terminal. This should print the version number so you’ll see something like this v0.10.31.
To see if NPM is installed, type npm -v in Terminal. This should print the version number so you’ll see something like this 1.4.27


How to Update Node and NPM


New versions of Node and NPM come out frequently. You can use Homebrew to update the software it installs.

Make sure Homebrew has the latest version of the Node package. In Terminal type brew update
Upgrade Node: brew upgrade node
How to Uninstall Node and NPM

You can use Homebrew to uninstall packages that it installed: brew uninstall node

With Node.js and NPM installed you’ll soon be able to take advantage of the huge world of NPM modules that can help with a wide variety of tasks both on the web server and on your desktop (or laptop) machine. The NPM site lists all of the official Node packages making it easy to make the choice.

Reference:

https://blog.teamtreehouse.com/install-node-js-npm-mac.

Install Homebrew For Mac



Homebrew is a package manager for the Mac. The Homebrew website says "Homebrew installs the stuff you need that Apple didn’t". It makes installing most open source software simple.

To install, open Terminal and type:


ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


Reference:
1. https://brew.sh/
2. https://blog.teamtreehouse.com/install-node-js-npm-mac