2012-02-09 70 views
1

使用zc.buildout我需要擴展PATH環境變量安裝NPM:如何擴展PATH中zc.recipe.cmmi

[npm] 
recipe=zc.recipe.cmmi 
url=https://github.com/isaacs/npm/tarball/v1.1.1 
environment = PATH=$PATH:${nodejs:location}/bin 

[nodejs] 
recipe=zc.recipe.cmmi 
url=http://nodejs.org/dist/node-latest.tar.gz 
#prefix option is added by default 

但它不工作:

Installing npm. 
npm: Unpacking and configuring 
npm: Updating environment: PATH=$PATH:/Users/toutpt/makina/rempeitec/cubes/parts/nodejs/bin 
./configure: line 11: dirname: command not found 
sh: make: command not found 
npm: cmmi failed: /var/folders/n0/srl4c2h500zfvcny_r55t41h0000gr/T/tmpKpXrcPbuildout-npm 
While: 
    Installing npm. 

如果我自己設定了路徑,但它不可重複。我試過$$ PATH,\ $ PATH沒有成功。

回答

0

您可以使用minitage.recipe.cmmi,這將支持添加一些$PATH安裝Node.js的包。

[npm] 
recipe=minitage.recipe.cmmi 
url=https://github.com/isaacs/npm/tarball/v1.1.1 
path=${nodejs:location}/bin