nDistro

nDistro

Node distribution shell script. nDistro allows you to build your own node distribution using a simple configuration file, without depending on large programs. To contribute a node binary head over to nodes.

NOTE: this tool is deprecated, npm now supports a similar behaviour

Installation

curl:

 $ cd /usr/local/bin && curl https://github.com/visionmedia/ndistro/raw/master/install | sh

npm:

$ npm install ndistro

Example distribution

nDistro is simply a dotfile named .ndistro which defines module and node binary version dependencies. In the example below we specify the node binary version 0.1.102, as well as several 3rd party modules.

node 0.1.102
module senchalabs connect
module visionmedia express 1.0.0beta2
module visionmedia connect-form
module visionmedia connect-redis
module visionmedia jade
module visionmedia ejs
module learnboost node-canvas 0.4.0 canvas

Follow the installation step above to gain access to the ndistro executable, and then in your distro directory that contains .ndistro run:

$ ndistro

原文地址:https://www.cnblogs.com/lexus/p/2499035.html