2015-02-09 82 views

回答

2

从伊萨克,node.js中的贡献者之一:

echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc 
    . ~/.bashrc 
    mkdir ~/local 
    mkdir ~/node-latest-install 
    cd ~/node-latest-install 
    curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 
    ./configure --prefix=~/local 
    make install 
    curl https://www.npmjs.org/install.sh | sh 

对于更详细的信息: https://gist.github.com/isaacs/579814

+0

** ** NPM是捆绑在一起的Node.js,没有必要单独安装。 – 2015-02-10 11:31:14

+0

@FrancyGrillo这应该是被接受的答案。 – Booligoosh 2017-10-25 11:27:19

0

花式安装(UNIX)

https://www.npmjs.com/install.sh有一个非常强大的安装脚本。你可以下载并运行它。

下面是使用curl一个例子:

curl -L https://npmjs.com/install.sh | sh 
相关问题