GithubHelp home page GithubHelp logo

Comments (6)

sindresorhus avatar sindresorhus commented on May 21, 2024

For the first one: http://stackoverflow.com/questions/15846076/command-not-found-after-installation/15850125#15850125 I would probably use the Node prompt that comes bundled with the Node installer.

from pageres.

tobalsan avatar tobalsan commented on May 21, 2024

I managed to get the command to be found, on Windows you need a pageres file in any path folder, that should contain:

#!/bin/sh

basedir=`dirname "$0"`

case `uname` in
    *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
esac

if [ -x "$basedir/node.exe" ]; then
  "$basedir/node.exe" "$basedir/node_modules/pageres/cli.js" "$@"
else
  node "$basedir/node_modules/pageres/cli.js" "$@"
fi

but I still get the second bug. pageres alone works fine and displays the help, but as soon as I provide arguments, I get the error message.

from pageres.

sindresorhus avatar sindresorhus commented on May 21, 2024

I don't use Windows, so can't really help much on that.

Try using master, it has a lot of improvements: npm install --global sindresorhus/pageres

from pageres.

tobalsan avatar tobalsan commented on May 21, 2024

I'm investigating, and I found that index.js, line 11:

var phantomjsBin = require('phantomjs').path;

the var phantomjsBin is null. It should contain the path to phantomjs bin folder, right ?

from pageres.

talves avatar talves commented on May 21, 2024

I use windows 7 and do not get any errors as long as I am using the node.js command shell. If I try to use powershell, it gacks. I would expect this though, so I use the node shell.
@sindresorhus Great job on this by the way!

from pageres.

sindresorhus avatar sindresorhus commented on May 21, 2024

There's better PhantomJS detection in 0.3.0: https://github.com/sindresorhus/pageres/releases/tag/v0.3.0

from pageres.

Related Issues (20)

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.