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 trialparth patel
1,862 PointsSyntax Error for the first line of code
When i do const selenium = require("selenium-webdriver");
i get this error: bash: syntax error near unexpected token `('
this is happening in workspace
2 Answers
michael williams
19,492 Pointsis it saying "unexpected token" on that exact one or "unexpected token near" that one?
KRIS NIKOLAISEN
54,972 PointsAlthough this is over a year old someone may come across this like I did. The reason you see that error is you need to enter the Node REPL first by entering node
at the treehouse:~/workspace$
prompt. Then the prompt will change from treehouse:~/workspace$
to >
.