nDistro

nDistro,第1张

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://outofmemory.cn/zaji/2086944.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-07-22
下一篇 2022-07-22

发表评论

登录后才能评论

评论列表(0条)

保存