{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/protractor/issues/2598","labels_url":"https://api.github.com/repos/angular/protractor/issues/2598/labels{/name}","comments_url":"https://api.github.com/repos/angular/protractor/issues/2598/comments","events_url":"https://api.github.com/repos/angular/protractor/issues/2598/events","html_url":"https://github.com/angular/protractor/issues/2598","id":110539210,"number":2598,"title":"SyntaxError: Unexpected token ILLEGAL     at exports.runInThisContext (vm.js:73:16)     at Module._compile (module.js:443:25)     at Object.Module._extensions..js (module.js:478:10)     at Module.load (module.js:355:32)     at Function.Module._load (module.js:310:12)     at Module.require (module.js:365:17)     at require (module.js:384:17)     at /Users/ahmeds6/local/node/lib/node_modules/protractor/node_modules/jasmine/lib/jasmine.js:63:5     at Array.forEach (native)     at Jasmine.loadSpecs (/Users/ahmeds6/local/node/lib/node_modules/protractor/node_modules/jasmine/lib/jasmine.js:62:18) [launcher] Process exited with error code 100","user":{"login":"ahmedusa","id":15039666,"avatar_url":"https://avatars.githubusercontent.com/u/15039666?v=3","gravatar_id":"","url":"https://api.github.com/users/ahmedusa","html_url":"https://github.com/ahmedusa","followers_url":"https://api.github.com/users/ahmedusa/followers","following_url":"https://api.github.com/users/ahmedusa/following{/other_user}","gists_url":"https://api.github.com/users/ahmedusa/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmedusa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmedusa/subscriptions","organizations_url":"https://api.github.com/users/ahmedusa/orgs","repos_url":"https://api.github.com/users/ahmedusa/repos","events_url":"https://api.github.com/users/ahmedusa/events{/privacy}","received_events_url":"https://api.github.com/users/ahmedusa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-08T20:55:07Z","updated_at":"2015-10-08T20:55:07Z","closed_at":null,"body":"can anyone help me with the following issue:\r\n\r\n\r\nSyntaxError: Unexpected token ILLEGAL\r\n    at exports.runInThisContext (vm.js:73:16)\r\n    at Module._compile (module.js:443:25)\r\n    at Object.Module._extensions..js (module.js:478:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Module.require (module.js:365:17)\r\n    at require (module.js:384:17)\r\n    at /Users/ahmeds6/local/node/lib/node_modules/protractor/node_modules/jasmine/lib/jasmine.js:63:5\r\n    at Array.forEach (native)\r\n    at Jasmine.loadSpecs (/Users/ahmeds6/local/node/lib/node_modules/protractor/node_modules/jasmine/lib/jasmine.js:62:18)\r\n[launcher] Process exited with error code 100\r\n\r\n\r\nI am using protractor and jasmine:\r\nhere is the config file:\r\n\r\nexports.config = {\r\n    seleniumAddress: 'http://localhost:4444/wd/hub',\r\n    capabilities: {\r\n        'browserName' : 'firefox',\r\n        shardTestFiles: true,\r\n    },\r\nbaseUrl: 'http://test.com/',\r\n\r\n    allScriptsTimeout: 2000,\r\n    getPageTimeout: 2000,\r\n\r\n    framework: 'cucumber',\r\n    framework: \"jasmine2\",\r\n\r\n    specs: [\r\n     'features/tests.feature'\r\n    ],\r\n\r\n   framework: 'jasmine2',\r\n\r\n    onPrepare: function() {\r\n        var jasmineReporters = require('jasmine-reporters');\r\n\r\n        // returning the promise makes protractor wait for the reporter config before executing tests\r\n        return browser.getProcessedConfig().then(function(config) {\r\n            // you could use other properties here if you want, such as platform and version\r\n            var browserName = config.capabilities.browserName;\r\n\r\n            var junitReporter = new jasmineReporters.JUnitXmlReporter({\r\n                consolidateAll: true,\r\n                savePath: 'test/reports/',\r\n                // this will produce distinct xml files for each capability\r\n                filePrefix: browserName + '-xmloutput',\r\n                modifySuiteName: function(generatedSuiteName, suite) {\r\n                    // this will produce distinct suite names for each capability,\r\n                    // e.g. 'firefox.login tests' and 'chrome.login tests'\r\n                    return browserName + '.' + generatedSuiteName;\r\n                }\r\n            });\r\n            jasmine.getEnv().addReporter(junitReporter);\r\n        });\r\n    },\r\n\r\n    jasmineNodeOpts: {\r\n        showColors: true,\r\n        isVerbose: true,\r\n        includeStackTrace: true,\r\n        defaultTimeoutInterval: 30000\r\n    },\r\n\r\n\r\n    cucumberOpts: {\r\n        format: 'pretty',\r\n    },\r\n};"}}