我正在尝试在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发布于 2012-10-30 00:54:53
这里的问题是我的tmp目录没有写权限。很抱歉问了这么愚蠢的问题。
https://stackoverflow.com/questions/13125915
复制相似问题