question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clean install/run on Windows 10 not working

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
garriscommented, Sep 28, 2016

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.

1reaction
patdavidcommented, Sep 23, 2016

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!

Read more comments on GitHub >

github_iconTop Results From Across the Web

I have problems with Clean Install windows 10
I have problems with Clean Install windows 10 ... After running the list disk command, all the disk drives will be listed.
Read more >
Windows PC not working properly? Try a clean install
Install Windows from scratch​​ To use this option, open Settings. Select Update & Security. Click Recovery, then Get started. Choose to either ...
Read more >
Perform clean install of Windows 10 (six ways) - Pureinfotech
To perform clean install Windows 10, use a bootable USB, Media Creation Tool, Reset This PC, or Windows 10 ISO mount. Clean install...
Read more >
How to do a clean installation of Windows 10
A clean install is the best option to reinstall, upgrade, or set up a new Windows 10 device, and here's how.
Read more >
Fix Can't Select Windows 10 Edition During Clean Installation
Fix Can't Select Windows 10 Edition During Clean InstallationSo you are trying to install Windows 10 Pro and you are unable to select ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found