Background, very long time has been (heard) Linux, blind to play Mac Mini, now Linux development skills Hemiplegia, in a laissez-faire state. Clearly know that with the passage of time will be more unfamiliar things more do not want to seize the last remaining temperature, do not know this is not to give up, anyway delay extremely.
Until one day, no matter whether men and women have begun to enter the ranks of late marriage. Domestic: 30 million of single dogs. Look at the average society: every 1000 people have a multimillionaire. Every 100 people have a drug addiction. Well...... Off the topic.
No more blind toss. Have to learn, to plan, to get the knowledge organized, or five years is a year of experience.
To be ruthless, give yourself a reason to buy something expensive. Otherwise will not be distressed. Not determined.
......
Open the package apart directly installed Xcode
Want to install Nodejs Common, the official website has a direct package, download directly to the application can be done. No technical content.
Search, found a good software to install the management of MAC programs, brew--first impression that like NPM
Official website--http://brew.sh/
...... Turn on the Mac terminal now the/usr under the root folder does not have a local folder
Knock
Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"
Check Again
Ripe
ps:youtube Twitter Facebook Google Portal: Http://honx.in/_VYexsokWGimbLnAu
Schlaf gut~
Written on July 2 after a few days--using brew
1: Install the download file tool
$ brew install wget
bin/wget -> ../Cellar/wget/1.16.1/bin/wget
The file was installed in the Cellar directory and the soft link to the bin
2: Two forced installation Nodejs return to Origin
Brew Install node
So far so good;
Node has been installed in the cellar directory. and brew-like node's package management NPM is installed relative to Mac
Here to add (http://segmentfault.com/q/1010000000315988)
The NPM installation module defaults to the Shell's current folder. Assuming that you want to load the global, usenpm install xss -g
npm help installDescription of the narrative is:
Packages is dropped into the node_modules folder under the prefix. Global installs on Unix systems go to {prefix}/lib/node_modules. Global installs on Windows go to {prefix}/node_modules (that is,no Lib folder.)
The effect of translation is:
packages install into prefix prefix node_modules . The Global installation in the UNIX system is loaded into {prefix}/lib/node_modules . The Windows system is {prefix}/node_modules (that is, there is no Lib directory).
through npm config ls can list the configuration of prefix
Change prefix tonpm config set prefix "f:\node"
ozil:~ mesut$ npm Install Grunt-cli-g/usr/local/bin/grunt-/usr/local/lib/node_modules/grunt-cli/bin/grunt[ Email protected]/usr/local/lib/node_modules/grunt-cli├──[email Protected]├──[email protected] ([email protected]) └──[email protected] ([email protected], [email protected])
Bin folder put command soft link to run program under corresponding folder
Clear Cache
NPM Cache Clean
PS: Artistic Installation Node Method:
1. Install git first
Git install package
2, Installation Nodejs
Run the following command in turn:
git clone
CD Nodejs
./configure
Make
sudo make install
Do not fold mobile web--turn on my personal Mac tour