2012-10-29 163 views
0

我試圖在Node上安裝http-proxy,所以我可以設置一個HTTPS代理,但運行時出現以下錯誤。關於如何獲得http-proxy或任何其他建議的任何建議,我如何使用node.js設置HTTPS代理。在此先感謝在node.js中安裝http-proxy模塊需要的幫助

NPM安裝HTTP代理

npm http GET https://registry.npmjs.org/http-proxy 
npm http 304 https://registry.npmjs.org/http-proxy 
npm ERR! Error: ENOTDIR, mkdir '/Users/rshroff/tmp/npm-15272/1351528387771-0.3611239262390882' 
npm ERR! If you need help, you may report this log at: 
npm ERR!  <http://github.com/isaacs/npm/issues> 
npm ERR! or email it to: 
npm ERR!  <[email protected]> 

npm ERR! System Darwin 11.3.0 
npm ERR! command "node" "/usr/local/bin/npm" "install" "http-proxy" 
npm ERR! cwd /Users/rshroff 
npm ERR! node -v v0.8.10 
npm ERR! npm -v 1.1.65 
npm ERR! path /Users/rshroff/tmp/npm-15272/1351528387771-0.3611239262390882 
npm ERR! code ENOTDIR 
npm ERR! errno 27 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /Users/rshroff/npm-debug.log 
npm ERR! not ok code 0 

回答

0

雅阿,所以這裏的問題是,我的tmp目錄中沒有寫權限。對不起,問這樣一個愚蠢的問題。