- in terminal, type
xcode-select --install
- in terminal, go to .ssh/, type
ssh-keygen -t rsa -C "[email protected]"
. This will create bothid_rsa
andid_rsa.pub
files - copy id_rsa.pub content to github project > add new SSH key
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
This solution fixes the error caused by trying to run npm update npm -g
. Once you're finished, you also won't need to use sudo
to install npm modules globally.
Before you start, make a note of any globally installed npm packages. These instructions will have you remove all of those packages. After you're finished you'll need to re-install them.
- Remove all .repo inside /etc/yum.conf.d/ directory
- create a new repo file CentOS-Valut.repo
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
baseurl=http://vault.centos.org/5.11/os/i386/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
OlderNewer