簡體   English   中英

需要在node.js中安裝http-proxy模塊的幫助

[英]Needed assistance in installing http-proxy module in node.js

我正在嘗試在Node上安裝http-proxy,因此我可以設置HTTPS代理,但是運行時出現以下錯誤。 關於如何獲取http-proxy的任何建議,或關於如何使用node.js設置HTTPS代理的任何其他建議。 提前致謝

npm安裝http-proxy

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!     <npm-@googlegroups.com>

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

是的,這里的問題是我的tmp目錄沒有寫權限。 很抱歉提出這樣一個愚蠢的問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM