简体   繁体   中英

How to build and install node.js on OSX from git clone

I cloned the git repo for node.js

I checked out branch v0.4.11 (latest stable)

I built it ( ./configure && make && sudo make install )

Then I simply copied the binary alone to ~/local/node/bin/ which seems to work

I checked the versions ( node -v ) which correctly reports 0.4.11

But I don't know if this is the right thing to do, and if I am missing something from my installation process. It runs all my simple server scripts fine, but now I am trying to use NodObjC and am getting errors. I want to be confident that my node.js is installed correctly - and also to understand how it should be set up, what it requires etc... so that I can update it to whatever version I want, using a similar approach in the future.

So my question is... is it correct to simply copy the built binary to the ~/local/node/bin/ folder?

It turns out that sudo make install should copy the node binary, but was not on my system. Solved by completely removing, then re-installing from scratch according to these instructions .

I had to install NodObjC twice - both times without error before I could use it.

All works now - Happy days...

  • node v0.4.11
  • npm v1.0.27
  • NodObjC v0.0.7

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM