그래서 직장에서 phantom.js를 설치하려고합니다. 소스 코드를 다운로드 할 수 있고 .exe를 설치할 수도 있습니다 (팬텀 셸에 액세스 할 수 있음). 그러나 여전히 설치되지 않았습니다. node ./install .js 또는 npm install phantom.js를 시도하면이 오류가 발생합니다.
connect ETIMEDOUT ip:port
This is most likely not a problem with npm itself
and is related to network connectivity.
In most cases you are behind a proxy or have bad network settings.
If you are behind a proxy, please make sure that the
'proxy' config is set properly. See: 'npm help config'
또는
Receiving...
Error making request.
Error: connect ETIMEDOUT ipaddress:port
at Object.exports._errnoException (util.js:860:11)
at exports._exceptionWithHostPort (util.js:883:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1063:14)
내 노드 버전은 v4.4.2이고 Windows 7에 있습니다.
이제 phantomjs_cdnurl = https://cnpmjs.org/downloads 줄이 있도록 .npmrc 파일 (내 프록시 정보가 포함 된 파일)을 편집 해 보았습니다.
나는 또한 내 PATH와 소스 코드에 .exe 파일을 봇에 추가하려고 시도했지만 여전히 운이 없습니다. 마지막으로 "npm install phantomjs-prebuilt --phantomjs_cdnurl = https://bitbucket.org/ariya/phantomjs/downloads " 와 같은 셸 명령과 같은 README가 제안하는 작업을 시도했지만 동일한 오류도 있습니다. 내가 누락 / 잘못한 것이 있습니까? 도움을 주시면 대단히 감사하겠습니다.
매력처럼 작동하는 가장 좋은 방법은 작동하는 phantomjs를 사용하는 것입니다.
npm install -g phantomjs-that-works
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다