Code Monkey home page Code Monkey logo

Comments (10)

fallenleavesguy avatar fallenleavesguy commented on July 20, 2024

"c:\node_modules/karma-electron" looks strange

from karma-electron.

twolfson avatar twolfson commented on July 20, 2024

Are you using a custom path? We test on Windows via Appveyor with electron-prebuilt so it sounds exclusive to your machine =/

from karma-electron.

fallenleavesguy avatar fallenleavesguy commented on July 20, 2024

I didn't use a custom path.I also use electron-prebuilt that installed by npm. and my system is windows 10

from karma-electron.

twolfson avatar twolfson commented on July 20, 2024

As a sanity check, can you try cloning this repository and running its tests?

# Clone this repository
git clone https://github.com/twolfson/karma-electron
cd karma-electron

# Install its dependencies
npm install

# Run its Windows tests
npm run test-windows

from karma-electron.

fallenleavesguy avatar fallenleavesguy commented on July 20, 2024

> [email protected] test-windows c:\work\karma-electron
> npm run test-karma-all


> [email protected] test-karma-all c:\work\karma-electron
> npm run test-karma-single-run && npm run test-karma-failure && npm run test-karma-uncaught-exception && npm run test-karma-karma && npm run test-karma-phantomjs && npm run test-karma-eof-comment && npm run test-karma-source-map


> [email protected] test-karma-single-run c:\work\karma-electron
> karma start test/integration-test/karma.conf.js --single-run

�[31m21 06 2016 19:47:28.767:ERROR [config]: �[39mError in config file!
 [SyntaxError: Unexpected token ILLEGAL]
SyntaxError: Unexpected token ILLEGAL
    at Function (native)
    at Function.compile (c:\work\karma-electron\node_modules\minstache\index.js:79:10)
    at Object.<anonymous> (c:\work\karma-electron\lib\karma-electron-preprocessor.js:17:26)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (c:\work\karma-electron\lib\index.js:7:3)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)

npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "test-karma-single-run"
npm ERR! node v5.9.0
npm ERR! npm  v3.7.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] test-karma-single-run: `karma start test/integration-test/karma.conf.js --single-run`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] test-karma-single-run script 'karma start test/integration-test/karma.conf.js --single-run'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the karma-electron package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     karma start test/integration-test/karma.conf.js --single-run
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs karma-electron
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls karma-electron
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     c:\work\karma-electron\npm-debug.log

npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "test-karma-all"
npm ERR! node v5.9.0
npm ERR! npm  v3.7.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] test-karma-all: `npm run test-karma-single-run && npm run test-karma-failure && npm run test-karma-uncaught-exception && npm run test-karma-karma && npm run test-karma-phantomjs && npm run test-karma-eof-comment && npm run test-karma-source-map`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] test-karma-all script 'npm run test-karma-single-run && npm run test-karma-failure && npm run test-karma-uncaught-exception && npm run test-karma-karma && npm run test-karma-phantomjs && npm run test-karma-eof-comment && npm run test-karma-source-map'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the karma-electron package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run test-karma-single-run && npm run test-karma-failure && npm run test-karma-uncaught-exception && npm run test-karma-karma && npm run test-karma-phantomjs && npm run test-karma-eof-comment && npm run test-karma-source-map
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs karma-electron
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls karma-electron
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     c:\work\karma-electron\npm-debug.log

npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "test-windows"
npm ERR! node v5.9.0
npm ERR! npm  v3.7.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] test-windows: `npm run test-karma-all`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] test-windows script 'npm run test-karma-all'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the karma-electron package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run test-karma-all
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs karma-electron
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls karma-electron
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     c:\work\karma-electron\npm-debug.log

from karma-electron.

twolfson avatar twolfson commented on July 20, 2024

Strange, I don't have time at the moment to debug on Windows. Do you think you could give it a shot?

from karma-electron.

fallenleavesguy avatar fallenleavesguy commented on July 20, 2024

It doesn't matter.if I know where is wrong,I'll tell you or make a pull request.thank you very much.

from karma-electron.

dwelle avatar dwelle commented on July 20, 2024

Ran into the same problem. the electron must be capitalized: browsers: [ 'Electron' ]

from karma-electron.

twolfson avatar twolfson commented on July 20, 2024

Ah, nice catch @dwelle. For reference, our casing is consistent with Karma's conventions:

http://karma-runner.github.io/1.0/config/browsers.html

http://karma-runner.github.io/1.0/config/preprocessors.html

from karma-electron.

fallenleavesguy avatar fallenleavesguy commented on July 20, 2024

I have solved this by using karma-electron 4.0.

from karma-electron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.