BackstopJS: Clean install/run on Windows 10 not working
Clean install of my site. The site builds and shows up fine in a browser. Running backstop is kicking some odd errors that I can’t quite figure out.
C:\Users\patdavid\Personal\github\pixlsus\website>node --version
v4.5.0
C:\Users\patdavid\Personal\github\pixlsus\website>npm --version
2.5.19
I installed your beta:
C:\Users\patdavid\Personal\github\pixlsus\website> npm install -g garris/backstopjs#version_2_0
npm WARN engine pngjs@0.4.0: wanted: {"node":"0.8.x"} (current: {"node":"4.5.0","npm":"2.15.9"})
\
> phantomjs-prebuilt@2.1.12 install C:\Users\patdavid\AppData\Roaming\npm\node_modules\backstopjs\node_modules\phantomjs-prebuilt
> node install.js
Considering PhantomJS found at C:\Users\patdavid\AppData\Roaming\npm\phantomjs.CMD
Looks like an `npm install -g` on windows; skipping installed version.
Downloading https://github.com/Medium/phantomjs/releases/download/v2.1.1/phantomjs-2.1.1-windows.zip
Saving to C:\Users\patdavid\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip
Receiving...
[=======================================-] 99%
Received 17767K total.
Extracting zip contents
Removing C:\Users\patdavid\AppData\Roaming\npm\node_modules\backstopjs\node_modules\phantomjs-prebuilt\lib\phantom
Copying extracted folder C:\Users\patdavid\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip-extract-1474578439927\phantomjs-2.1.1-windows -> C:\Users\patdavid\AppData\Roaming\npm\node_modules\backstopjs\node_modules\phantomjs-prebuilt\lib\phantom
Writing location.js file
Done. Phantomjs binary available at C:\Users\patdavid\AppData\Roaming\npm\node_modules\backstopjs\node_modules\phantomjs-prebuilt\lib\phantom\bin\phantomjs.exe
C:\Users\patdavid\AppData\Roaming\npm\backstop -> C:\Users\patdavid\AppData\Roaming\npm\node_modules\backstopjs\cli\index.js
backstopjs@2.0.0 C:\Users\patdavid\AppData\Roaming\npm\node_modules\backstopjs
├── lodash.map@4.6.0
├── open@0.0.5
├── minimist@1.2.0
├── chalk@1.1.3 (escape-string-regexp@1.0.5, supports-color@2.0.0, ansi-styles@2.2.1, strip-ansi@3.0.1, has-ansi@2.0.0)
├── temp@0.8.3 (os-tmpdir@1.0.1, rimraf@2.2.8)
├── node-resemble-js@0.0.4 (pngjs@0.4.0)
├── fs-extra@0.30.0 (path-is-absolute@1.0.0, klaw@1.3.0, jsonfile@2.4.0, graceful-fs@4.1.6, rimraf@2.5.4)
├── casperjs@1.1.3
├── junitwriter@0.3.1 (merge@1.2.0, mkdirp@0.5.0, dateformat@1.0.11, xmlbuilder@2.6.2)
└── phantomjs-prebuilt@2.1.12 (progress@1.1.8, kew@0.7.0, es6-promise@3.2.1, which@1.2.11, request-progress@2.0.1, hasha@2.2.0, extract-zip@1.5.0, request@2.74.0)
I have a backstopjs.json that works fine on another install (different computer). For reference, my backstop.json: https://paste.gnome.org/puwbf4ho6
From the project primary directory, running >backstop refrence:
C:\Users\patdavid\Personal\github\pixlsus\website>backstop reference
BackstopJS CWD: C:\Users\patdavid\Personal\github\pixlsus\website
BackstopJS loading config: C:\Users\patdavid\Personal\github\pixlsus\website\backstop.json
COMMAND | Executing core for `reference`
clean | bitmaps_reference was cleaned.
Running CasperJS with: [ 'C:\\Users\\patdavid\\AppData\\Roaming\\npm\\node_modules\\backstopjs\\capture\\genBitmaps.js' ]
CasperJS: Fatal: The specified executable is not a valid application for this OS platform.; did you install phantomjs?
Testing script failed with code: 4294967295
An unexpected error occured. You may want to try setting the debug option to `true` in your config file.
COMMAND | Command `reference` ended with an error
COMMAND | Error: An unexpected error occured. You may want to try setting the debug option to `true` in your config file.
at ChildProcess.<anonymous> (C:\Users\patdavid\AppData\Roaming\npm\node_modules\backstopjs\core\util\createBitmaps.js:63:18)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:829:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:486:12)
Checking on phantomjs: > phantomjs --version
2.1.1
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (10 by maintainers)
Commits related to this issue
- troubleshooting #289? — committed to garris/BackstopJS by garris 8 years ago
- tweak to #289 fix — committed to garris/BackstopJS by garris 8 years ago
Hmm. I think this is unrelated to the first issue – but probably also due to the refactor. Would you mind creating a new ticket? Please include your config. Thank you.
Thank you all so much for taking the time to help and possibly get a fix! Much appreciated!
Just an FYI: I’ve also tried this in a Cygwin environment and unfortunately it still kicks the same errors there as well. 😦 I’ll try it out from an ubuntu partition!
Hi @patdavid, thanks for posting!
This line is kind of bothering me…
I also see that phantomjs is responding the correct version so that is confusing.
Just for sanity, are you able to create a directory somewhere,
cdinto it and run…That would verify the install.
Please let me know. Thanks!