phantomjs截图

先安装 nodejs

nodejs 安装方式  https://nodejs.org/dist/v4.4.6/node-v4.4.6-x64.msi 下载了直接安装 安装好了之后

打开一个cmd窗口 输入node 看是否有结果 如果提示没有找到文件 则配置相应的系统路径


安装好node之后 

执行解压文件中的 test.js


执行方式 node test.js

--------------------

如果不能执行 需要在解压的路径下 执行

npm config set registry https://registry.npm.taobao.org
npm install
npm install https://github.com/brenden/node-webshot.git

如果安装失败 出现 git command not fund 的错误

则需要安装git

https://git-scm.com/download/win

安装git的时候 需要注意选择 use windows's default console window

猜你喜欢

转载自passionke.iteye.com/blog/2307354