Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You need to run <code>npm install</code> from the root of your project to install the npm dependencies.</p> <p>[EDIT] - After doing some more research, and after replicating this issue on a basic Ubuntu 12.04 install, I've finally figured out this issue. </p> <p>The dependency chain is as follows:</p> <p><code>grunt-contrib-qunit</code> >> <code>grunt-lib-phantomjs</code> >> <code>phantomjs</code></p> <p>Now the <code>phantomjs</code> package simply installs a local version of <code>phantomjs</code>, and provides a JS api wrapper around the bin application. The problem is that <code>phantomjs</code> has certain OS level dependencies, as mentioned in the <a href="http://phantomjs.org/download.html#linux" rel="nofollow">download page</a>:</p> <p><em>"... . It is however expected that some base libraries necessary for rendering (FreeType, Fontconfig) and the basic font files are available in the system."</em></p> <p>And this is the reason why the local phantomjs install failed. Actually, the error is very generic as the install completes successfully, but phantomjs is not able to run.</p> <p>The <code>phantomjs</code> NPM module does not handle <code>phantomjs</code> dependencies (as <code>phantomjs</code> is not a proper NPM module).</p> <p>To fix the issue in Ubuntu 12.04, you need to manually install the <code>phantomjs</code> dependencies by installing the font packages with the following command:</p> <p><code>sudo apt-get install fontconfig</code></p> <p>I have created a ticket on the 'phantomjs' NPM project to add a note about these dependencies to the README: <a href="https://github.com/Obvious/phantomjs/issues/80" rel="nofollow">https://github.com/Obvious/phantomjs/issues/80</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload