如何在Windows 7上安装Zombie JS? (node.js无头浏览器)
我有问题,你能指出我的方向吗?
编辑:此模块(Contextify)将不会从Windows上的npm安装.有关更多信息,请参阅https://github.com/brianmcd/contextify/issues/10. 这是因为npm在Windows上不支持C模块:https://github.com/brianmcd/contextify/issues/14#issuecomment-3577972 一般我想运行http://zombie.labnotes.org – 对于Windows,他们建议:
问题是 – 他们说Cygwin的描述已经过时了,建议使用Visual Studio …无论哪种方式,我都得到了两个,我正在使用nodejs安装程序,而不是从头开始构建它(错误似乎不与之相关).这里是我正在做的步骤: 1)使用安装程序安装的node.js:http://nodejs.org/#download 2)有NPM包管理器:https://github.com/isaacs/npm 3)得到Python 2.7,Visual Studio 2010(有些来源指出C编译器是必要的)和Cygwin … 4)由于安装程序在上下文中失败,我搜索了it
c:Program Files (x86)nodejs>node --version v0.6.13 c:Program Files (x86)nodejs>npm install zombie npm http GET https://registry.npmjs.org/zombie npm http 304 https://registry.npmjs.org/zombie npm http GET https://registry.npmjs.org/ws npm http GET https://registry.npmjs.org/jsdom/0.2.10 npm http GET https://registry.npmjs.org/mime npm http GET https://registry.npmjs.org/coffee-script npm http 304 https://registry.npmjs.org/ws npm http 304 https://registry.npmjs.org/mime npm http 304 https://registry.npmjs.org/jsdom/0.2.10 npm http 304 https://registry.npmjs.org/coffee-script > ws@0.4.10 preinstall c:Program Files (x86)nodejsnode_moduleszombienode_mo dulesws > make 1 file(s) copied. 1 file(s) copied. npm http GET https://registry.npmjs.org/commander/0.5.0 npm http GET https://registry.npmjs.org/options npm http 304 https://registry.npmjs.org/options npm http 304 https://registry.npmjs.org/commander/0.5.0 npm http GET https://registry.npmjs.org/contextify npm http GET https://registry.npmjs.org/request npm http GET https://registry.npmjs.org/htmlparser npm http GET https://registry.npmjs.org/cssom npm http 304 https://registry.npmjs.org/contextify npm http 304 https://registry.npmjs.org/htmlparser npm http 304 https://registry.npmjs.org/request npm http 304 https://registry.npmjs.org/cssom > contextify@0.0.7 preinstall c:Program Files (x86)nodejsnode_moduleszombie node_modulesjsdomnode_modulescontextify > node-waf clean || (exit 0); node-waf configure build node-waf was unexpected at this time. npm ERR! Error: ENOENT,chmod 'c:Program Files (x86)nodejsnode_moduleszombie node_modulesjsdomnode_modulesrequesttestssquid.conf' npm ERR! 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! npm ERR! System Windows_NT 6.1.7600 npm ERR! command "c:Program Files (x86)nodejs\node.exe" "c:Program File s (x86)nodejsnode_modulesnpmbinnpm-cli.js" "install" "zombie" npm ERR! cwd c:Program Files (x86)nodejs npm ERR! node -v v0.6.13 npm ERR! npm -v 1.1.9 npm ERR! path c:Program Files (x86)nodejsnode_moduleszombienode_modulesjsd omnode_modulesrequesttestssquid.conf npm ERR! fstream_path c:Program Files (x86)nodejsnode_moduleszombienode_mod ulesjsdomnode_modulesrequesttestssquid.conf npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! fstream_finish_call chmod npm ERR! code ENOENT npm ERR! message ENOENT,chmod 'c:Program Files (x86)nodejsnode_moduleszombi enode_modulesjsdomnode_modulesrequesttestssquid.conf' npm ERR! errno {} npm ERR! fstream_stack Object.oncomplete (c:Program Files (x86)nodejsnode_mod ulesnpmnode_modulesfstreamlibwriter.js:285:17) npm ERR! Error: ENOENT,lstat 'c:Program Files (x86)nodejsnode_moduleszombie node_modulesjsdomnode_moduleshtmlparserruntests.html' npm ERR! 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! npm ERR! System Windows_NT 6.1.7600 npm ERR! command "c:Program Files (x86)nodejs\node.exe" "c:Program File s (x86)nodejsnode_modulesnpmbinnpm-cli.js" "install" "zombie" npm ERR! cwd c:Program Files (x86)nodejs npm ERR! node -v v0.6.13 npm ERR! npm -v 1.1.9 npm ERR! path c:Program Files (x86)nodejsnode_moduleszombienode_modulesjsd omnode_moduleshtmlparserruntests.html npm ERR! fstream_path c:Program Files (x86)nodejsnode_moduleszombienode_mod ulesjsdomnode_moduleshtmlparserruntests.html npm ERR! fstream_type File npm ERR! fstream_class FileWriter npm ERR! code ENOENT npm ERR! message ENOENT,lstat 'c:Program Files (x86)nodejsnode_moduleszombi enode_modulesjsdomnode_moduleshtmlparserruntests.html' npm ERR! errno {} npm ERR! fstream_stack Object.oncomplete (c:Program Files (x86)nodejsnode_mod ulesnpmnode_modulesfstreamlibwriter.js:204:26) npm ERR! npm ERR! Additional logging details can be found in: npm ERR! c:Program Files (x86)nodejsnpm-debug.log npm not ok c:Program Files (x86)nodejs> 为了使其运行,我需要采取哪些步骤? 如果从源头构建nodejs来安装软件包,那么请大声说:) 感谢您的帮助!
这不直接回答您的问题,但它可能会帮助您解决您想要使用Zombie.js的问题,也可能是其他SOER的良好信息.
在节点v0.6的这个阶段,你将要争取一场艰苦的战斗,让Zombie.js在Windows上工作.节点v0.8将使从node-waf到node-gyp的切换更好一点. 然而,如果你想要真正的无头浏览器环境,你可能想看看PhantomJS和CasperJS(PhantomJS的测试框架).它不是一个Node模块,但它的工作原理非常好,是一个真正的无头浏览器,不像Zombie.js,它是一种模拟. PhantomJS在Windows上运行良好. 希望这可能有助于您的Windows的站点测试/刮取需求. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- 为什么这个增加uint8_t的代码包括`&0xFF`?
- 什么是Microsoft BizTalk实际用于?
- 如何在Windows中使用golang获取文件描述(产品名称,原始filn
- windows-server-2008 – 列出Win Server 2008上的所有共享文
- Windows批处理字符串替换在变量给出搜索字符串时不起作用
- windows-server-2003 – 如何在Windows Small Business Ser
- windows-server-2003 – 通过组策略推送新的注册表项
- windows-server-2008-r2 – 文件夹权限,用户对象上的红色x
- 如何在Windows Vista命令提示符下检查端口8080?
- Win32,如何用C挂钩编译程序中的函数?
- windows – SwitchToThisWindow将当前窗口发送到
- 定期的ServiceBus错误“当使用Azure WebSites时,
- XAML和Windows Mobile(.Net Compact Framework)
- windows – 如何在Visual Studio编辑器中禁用字体
- windows – KMS – 哪些客户获得许可?
- windows-phone-7 – 如何在WP7上以编程方式打开/
- windows – 我可以使用powershell强制执行密码套
- windows-server-2003 – 在Windows上使用什么样的
- windows – 恢复已删除的AD对象
- windows – App-V有什么好处?