Trying to debug protractor on webstorm 8 . Followed these instructions: How to debug angular protractor tests in WebStorm
When I click the debug icon i get this error message:
"C:\Program Files (x86)\JetBrains\WebStorm 8.0.4\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" --debug-brk=3803 --nolazy c:\protractor\node_modules\protractor-tester\node_modules\protractor\lib\cli.js protractor.conf.js
debugger listening on port 3803
c:\protractor\node_modules\protractor-tester\node_modules\protractor\lib\cli.js:138
throw new Error('You must specify either a seleniumAddress, ' +
^
Error: You must specify either a seleniumAddress, seleniumServerJar, or saucelabs account.
at run (c:\protractor\node_modules\protractor-tester\node_modules\protractor\lib\cli.js:138:11)
at Object.<anonymous> (c:\protractor\node_modules\protractor-tester\node_modules\protractor\lib\cli.js:265:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain [as _onTimeout] (module.js:497:10)
at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)
Process finished with exit code 8
how to fix this?
Your protractor.conf.js should look like:
exports.config = {
seleniumAddress: "http://127.0.0.1:4444/wd/hub",
...
}
Related
I'm trying run a server configuration whit this instruccion.
forever start --uid "mns_server_dev_7200" index.js.
but I can't, I have this error
module.js:549
throw err;
^
Error: Cannot find module 'mongoose'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/mns_server/index.js:12:16)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3) error: Forever detected script exited with code: 1
but in my npm list I have installed the module 'mongoose'
part of modules list
so, I have been readding about this bug but I couldn't resolve it
I encounter the following error when trying to start the development server using yarn run. It seems something to do with path to npm package options mocha. I'm using Windows 8.1. I installed cross-env if it involved NODE env variable, but to no avail. Can you describe why this is happening?
Error: cannot resolve path (or pattern) '$npm_package_options_mocha'
at Object.lookupFiles (C:\Users\Kaleab\Desktop\addis_map\google-maps-react
ode_modules\mocha\lib\utils.js:634:15)
at C:\Users\Kaleab\Desktop\addis_map\google-maps-react\node_modules\mocha\
n\_mocha:327:30
at Array.forEach (native)
at Object.<anonymous> (C:\Users\Kaleab\Desktop\addis_map\google-maps-react
ode_modules\mocha\bin\_mocha:326:6)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:393:7)
at startup (bootstrap_node.js:150:9)
at bootstrap_node.js:508:3
Done in 46.84s.
i'm trying to install this plugin : https://github.com/phonegap/phonegap-plugin-barcodescanner but the following error shows up:
SyntaxError: Unexpected token =>
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 Object.<anonymous> (C:\Users\guadha.peralta\AppData\Roaming\npm\node_modules\phonegap\lib\phonegap\serve.js:9:23)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
what could be the problem?
The "arrow function" => are ES6 functions. Update node to minimum v4.4.5 which starts supporting ES6. On windows you must have installed the latest version of node, which supports that type of function.
Update node on Windows
Run PowerShell as Administrator and execute the following command:
npm install -g npm-windows-upgrade
I am using "yo angular-fullstac" and getting below error when running "grunt server" or "grunt serve --force" command. Any idea why this happens? How to fix it?
Running "autoprefixer:dist" (autoprefixer) task
File .tmp/app/app.css created.
File .tmp/app/app.css.map created (source map).
Running "express:dev" (express) task
Starting background Express server
Debugger listening on port 5858
module.js:338
throw err;
^
Error: Cannot find module 'destroy'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (D:\Projects\NEWMM\node_modules\express\node_modules\s
end\index.js:8:15)
at Module._compile (module.js:460:26)
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)
Running "wait" task
>> Waiting for server reload...
Done waiting!
Running "open:server" (open) task
Running "watch" task
Waiting...
I am going through the tutorial LoopBack/Getting started part II.
Everything is happening as expected until I come to the "Create AngularJS client".
When I try to execute (Windows 7):
lb-ng server/server.js client/js/services/lb-services.js
following happens:
C:\learn\loopbackLearn>lb-ng server/server.js client/js/services/lb-services.js
Loading LoopBack app "C:\\learn\\loopbackLearn\\server\\server.js"
{ [Error: Cannot find module '../build/Release/bson'] code: 'MODULE_NOT_FOUND' }
js-bson: Failed to load c++ bson extension, using pure JS version
module.js:338
throw err;
^
Error: Cannot find module 'async'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (C:\learn\loopbackLearn\server\boot\create-sample-mode
ls.js:1:75)
at Module._compile (module.js:460:26)
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)
I understand that the fact that the c++ bson extension is missing is just a warning ... but how do I cope with the missing "async" module?
Can you help me?
Thanx!
In Linux, I had to install async manually before proceed.
$ npm install async --save
After this, I got the following error:
Error: ENOENT, no such file or directory '/home/action/workspace/github-nodejs/react/loopback-getting-started/client/js/services/lb-services.js'
I created the directory and after this everything worked ok.
$ mkdir client/js
$ mkdir client/js/services
$ lb-ng server/server.js client/js/services/lb-services.js