Search code examples
npmphantomjsnpm-installdalekjs

stuck with dalekjs installation


Trying to install dalekjs on Win7 64bit EE. npm version 2.15.8. Ran the command prompt as Administrator.

Created the file package.json under C:\Users\ZW85

{
  "name": "myCssTardis",
  "description": "Is awesome",
  "version": "0.0.2"
}

Ran npm install dalek-cli -g

C:\Users\ZW85>npm install dalek-cli -g C:\Users\ZW85\AppData\Roaming\npm\dalek -> C:\Users\ZW85\AppData\Roaming\npm\nod e_modules\dalek-cli\bin\cmd.js [email protected] C:\Users\ZW85\AppData\Roaming\npm\node_modules\dalek-cli └── [email protected] ([email protected], [email protected])

Ran npm install dalekjs --save-dev

C:\Users\ZW85>npm install dalekjs --save-dev npm WARN package.json [email protected] No repository field. npm WARN package.json [email protected] No README data npm WARN package.json [email protected] No license field. npm WARN deprecated [email protected]: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0. npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated [email protected]: the module is now available as 'css-select' npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"4.4.7","npm":"2.15.8"}) npm WARN deprecated [email protected]: this package has been reintegrated into npm and is now out of date with respect to npm npm WARN deprecated [email protected]: the module is now available as 'css-what' / [email protected] install C:\Users\ZW85\node_modules\dalekjs\node_modules\dalek-browser-phantomjs\node_modules\phantomjs node install.js

Download already available at C:\Users\ZW85\AppData\Local\Temp\phantomjs\phantomjs-1.9.8-windows.zip Extracting zip contents Removing C:\Users\ZW85\node_modules\dalekjs\node_modules\dalek-browser-phantomjs\node_modules\phantomjs\lib\phantom Copying extracted folder C:\Users\ZW85\AppData\Local\Temp\phantomjs\phantomjs-1.9.8-windows.zip-extract-1471504147493\phantomjs-1.9.8-windows -> C:\Users\ZW85\node_modules\dalekjs\node_modules\dalek-browser-phantomjs\node_modules\phantomjs\lib\phantom

\

It's not proceeding from here. Tried multiple times.

Also tried running a test program

C:\Users\ZW85>dalek test/*.js

Running tests ERROR: dalek-driver-phantomjs: Binary not found: null

Installed phantomjs separately and tried, still same error. Would be great if anyone can point out what I'm missing here.

Thanks in advance!


Solution

  • I think this is the same issue as DalekJS v0.0.5 installation hung

    Long story short, make sure your devDependencies look like this:

    "devDependencies": { "dalekjs": "0.0.9", "dalek-browser-phantomjs":"https://github.com/wrumsby/dalek-browser-phantomjs/tarball/b0b6c011eec55ea7da987461f6e1c79a6ab4bf6e" }

    Referencing this specific version of dalek-browser-phantomjs should fix the hang.