Syntax error on webdriver-manager 10.2.9 - selenium

Post from issue #170:
After updating to the newest version, I get the following error on running 'webdriver-manager' command.
C:\Users\(user)\AppData\Roaming\npm\node_modules\webdriver-manager\built\lib\cli\logger.js:66
info(...msgs) {
^^^
SyntaxError: Unexpected token ...
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object. (C:\Users\(user)\AppData\Roaming\npm\node_modules\we
bdriver-manager\built\lib\cli\index.js:8:10)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)

Why is this happening? Version 10.2.9 requires node 6 and since it did not follow semantic versioning / caused a big problem, it was unpublished from npm and 10.2.10 has been published. To read more about 10.2.10, see the changelog.
If you have encountered this issue, please remove the node_module/webdriver-manager and do a fresh npm install.

You can downgrade webdriver version to 9.0 with this command:
npm install -g webdriver-manager#9.0

Related

npm run serve unexpected token ...options

I am trying to run IBM blockchain election system, Evote. link=https://github.com/IBM/evote.
when I am trying to run client by using "npm run serve". I am getting following error.
ahmed#ahmed-Inspiron-3580:~/evote/web-app/client$ npm run serve
> client#0.1.0 serve /home/ahmed/evote/web-app/client
> vue-cli-service serve
/home/ahmed/evote/web-app/client/node_modules/open/index.js:29
...options
^^^
SyntaxError: Unexpected token ...
at createScript (vm.js:74:10)
at Object.runInThisContext (vm.js:116:10)
at Module._compile (module.js:533:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/home/ahmed/evote/web-app/client/node_modules/#vue/cli-shared-utils/lib/openBrowser.js:9:14)
You are probably using a very old version of node.js. You can check the version by doing
node -v
you need to be using node 8 (it may not work with any version higher than that).
I would recommend using nvm as a mechanism for managing node versions. See https://github.com/nvm-sh/nvm

when i am using react-native-maps it gives me this error

I have install react-native-maps as globally
when i am using react-native link react-native-maps it gives me this error anyone can help me to fix this issue i am using node version 6.14.4
npm version 6.4.1
this is ther error
/home/yasiru/easybooking/project/Yasi/node_modules/react-native/local-cli/server/checkNodeVersion.js:43
);
^
SyntaxError: Unexpected token )
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:549:28)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/yasiru/easybooking/project/Yasi/node_modules/react-native/local-cli/cli.js:17:1)
6.14.4 is the latest version of the 6.x LTS release of Node JS, and there is a bug in react-native that affects older runtimes: https://github.com/facebook/react-native/commit/e61176d650e2b5fe51dd6cd4c429ff47a1a9b1dc. Based on the detail in your question this looks like the issue you are experiencing.
If you're on v0.56.0 of React Native (which has this bug with old runtimes) then you will either need to upgrade to one of the v0.57.0 release candidates with npm install react-native#0.57.0-rc.4 or upgrade your version of Node JS to a later release.

Error with chalk module installing Vue-cli

Configuring VUE-CLI I am having the next problem:
internal/modules/cjs/loader.js:596
throw err;
^
Error: Cannot find module 'chalk'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:594:15)
at Function.Module._load (internal/modules/cjs/loader.js:520:25)
at Module.require (internal/modules/cjs/loader.js:650:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object.<anonymous> (/usr/local/bin/vue:3:15)
at Module._compile (internal/modules/cjs/loader.js:702:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
at Module.load (internal/modules/cjs/loader.js:612:32)
at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
at Function.Module._load (internal/modules/cjs/loader.js:543:3)
I have tried to install the module globally but with the same result, when I type in the terminal vueerror appears again.
Could you tell me please how to fix this problem?
It was fixed adding the correct PATHS in the .zshrc file, I was adding them to the bash_profile but I am working with other shell.
see the error "Error: Cannot find module 'chalk'"
try
npm install chalk

PhantomJS: "SyntaxError: Unexpected token =>"

Im currently having problems using phantomJS. Any suggestions?
acanyon$ babel-node source_parser.js http://url
/Users/.../node/node_modules/phantom/lib/index.js:23
return new Promise(resolve => resolve(new _phantom2.default(args, config)));
^^
SyntaxError: Unexpected token =>
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Module._extensions..js (module.js:478:10)
at Object.require.extensions.(anonymous function) [as .js] (/Users/acanyon/.nvm/versions/node/v0.12.4/lib/node_modules/babel-cli/node_modules/babel-register/lib/node.js:152:7)
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> (/Users/acanyon/fashionblog/node/source_parser.js:4:15)
at Module._compile (module.js:460:26)
Am I missing a shim for es6? (the remainder of the script is written in es5).
Phantomjs use ES5, not ES6 ;)
That's why it doesn't work as expected
This failure can be eliminated by using phantom versions prior to 2.0.0.
Notice that this is the phantom package and not the phantomjs package that is giving the failure.
if you want to use versions higher than 1.x. you will need to change your code from page.open(url, function(){}) to page.open(url).then(function(){}).
this is explained very well at phantom npm site. Which gives detailed examples of how to do it

Error running Gulp in Sylius

I've got a new install of Sylius that I'm working with. I just installed NPM and Gulp, and wanted to run Gulp for the first time. I'm getting an error, and have never worked with Gulp or Sylius before, so it's a little hard for me to understand:
gulp
module.js:328
throw err;
^
Error: Cannot find module 'gulp-if'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/var/www/mysite.com/public_html/Gulpfile.js:2:14)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
This is happening on a Ubuntu system, but it also seems to be throwing the same error on my Mac, with a copy of the same Sylius install on it.
try running npm i -S gulp-if in your project. What this does is install the gulp-if package and saves it in your package.json file