Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

Location file created with invalid path separators in Windows #820

Open
blastedt opened this issue Dec 31, 2018 · 0 comments
Open

Location file created with invalid path separators in Windows #820

blastedt opened this issue Dec 31, 2018 · 0 comments

Comments

@blastedt
Copy link

blastedt commented Dec 31, 2018

Version: 2.1.15
Node version: 8.9.x
OS: Windows 10 x64
After install, the module generates a location.js that looks like this:
module.exports.location = 'C:\ui\proj\node_modules\phantomjs-bin\bin\win32\phantomjs.exe';
It should instead generate like this:
module.exports.location = 'C:\\ui\\proj\\node_modules\\phantomjs-bin\\bin\\win32\\phantomjs.exe';

This causes launch to fail until you do something like this to your karma conf (pick your poison on test runners):
require('phantomjs-prebuilt').path = 'C:\\ui\\proj\\node_modules\\phantomjs-bin\\bin\\win32\\phantomjs.exe'

This issue occurs kind of inconsistently across machines but I've experienced it on at least two so far.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant