Install io.js and npm without node via Homebrew on OSX

As $ title says, I want to install io.js from brew on Yosemite. There is no need for Node.js on my system, and I want to avoid unnecessary programs.

But .. When I run brew install iojs, I will see that it will be built with the option --without-npm, and as the text after installation is refined, it needs a fixed npm.

Despite the fact that I was looking for a solution, the only thing that came across how to run io.js and Node.js side by side is not what I am looking for.

I see that there is an npm package for brew, but it is part of the node package.

How to install iojs + npm without node?

+4
source share
3 answers
  • nvm (node ) brew:

    brew update
    brew install nvm
    source $(brew --prefix nvm)/nvm.sh
    

    .profile, .bashrc .zshrc, . , .profile run:

    echo "source $(brew --prefix nvm)/nvm.sh" >> ~/.profile
    
  • nvm, node io.js, . iojs :

    nvm install iojs
    

npm iojs, .

: brew, node.js, io.js, nvm, npm OS X?

+3

: homebrew, , , "" npm .

, , pkg iojs.org, npm.

( iojs v2.0.0)

+1

It may be late, but you can just use brew unlink node && brew link iojs --force I avoided nvm because it was too slow for me.

+1
source

All Articles