GithubHelp home page GithubHelp logo

runjuu / page2image Goto Github PK

View Code? Open in Web Editor NEW
67.0 67.0 2.0 457 KB

📷 page2image is a npm package for taking screenshots which also provides CLI command

License: MIT License

JavaScript 100.00%
cli headless-chrome npm page2image puppeteer screenshot

page2image's Introduction

😸

page2image's People

Contributors

greenkeeper[bot] avatar runjuu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

page2image's Issues

Specify output location?

Thank you for this package. Is it possible to specify the output location (folder on the computer) for the screenshots?

Apologies if Github issues is not the right choice for asking a support question. I see only a link to the Github issues page on your package site for questions.

How to solve "Chromium revision is not downloaded." ?

隔行如隔山,请 repo 主指教
操作系统:macOS Sierra
之前的操作是:

brew install node
npm install page2img

请问还需要何种后续操作才能跑起来? (应该是需要下载 chrome headless,但是不知道如何和 page2img 联动起来),报错如下图:
image

`npm i page2image -g` error

Node.js & npm version

Node.js: node -v;
v8.4.0
npm: npm -v
5.3.0

Operating system:

Ubuntu 16.04

Description of the bug:

Example CLI command or javascript code to reproduce the error

npm i page2image -g
/usr/local/node/bin/page2image -> /usr/local/node/lib/node_modules/page2image/buildBin/screenshot.js

> [email protected] install /usr/local/node/lib/node_modules/page2image/node_modules/puppeteer
> node install.js

fs.js:891
  return binding.mkdir(pathModule._makeLong(path),
                 ^

Error: EACCES: permission denied, mkdir '/usr/local/node/lib/node_modules/page2image/node_modules/puppeteer/.local-chromium'
    at Object.fs.mkdirSync (fs.js:891:18)
    at Object.downloadRevision (/usr/local/node/lib/node_modules/page2image/node_modules/puppeteer/utils/ChromiumDownloader.js:97:10)
    at Object.<anonymous> (/usr/local/node/lib/node_modules/page2image/node_modules/puppeteer/install.js:33:12)
    at Module._compile (module.js:573:30)
    at Object.Module._extensions..js (module.js:584:10)
    at Module.load (module.js:507:32)
    at tryModuleLoad (module.js:470:12)
    at Function.Module._load (module.js:462:3)
    at Function.Module.runMain (module.js:609:10)
    at startup (bootstrap_node.js:158:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2017-09-04T07_45_50_282Z-debug.log

Error infos:

mkdir -p /usr/local/node/lib/node_modules/page2image/node_modules/puppeteer/.local-chromium
npm i page2image -g
#同样的错误

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.