Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAnthea Rajasukumar
4,674 PointsREPL error
When i try to use REPL to execute the following statement, i get the following error The syntax looks ok to me. I am using node v6.2.0
node
var selenium = require("selenium-webdriver"); /Users/asamuel/SeleniumBasics/node_modules/selenium-webdriver/lib/http.js:454 async execute(command) { ^^^^^^^ SyntaxError: Unexpected identifier at Object.exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:513:28) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12) at Function.Module._load (module.js:409:3) at Module.require (module.js:468:17) at require (internal/module.js:20:19) at Object.<anonymous> (/Users/asamuel/SeleniumBasics/node_modules/selenium-webdriver/http/index.js:29:17) at Module._compile (module.js:541:32) .exit
1 Answer
Anthea Rajasukumar
4,674 PointsThis worked after upgrading node to the latest version.