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 trial

Quality Assurance Introduction to Selenium Test Drive Selenium Installation

Error messages when trying to install Selenium Webdriver and Chromedriver using NPM

Hello all,

I've been following the video, and received error messages when running the install for Selenium Webdriver and Chromedriver.

The feedback about the errors from the Terminal is as follows:

ChromeDriver binary exists. Validating... ChromeDriver 73.0.3683.20 (8e2b610813e167eee3619ac4ce6e42e3ec622017)

ChromeDriver is already available at '/tmp/73.0.3683.20/chromedriver/chromedriver'. Copying to target path /usr/local/lib/node_modules/chromedriver/lib/chromedriver ChromeDriver installation failed { Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/chromedriver/lib/chromedriver' at Object.mkdirSync (fs.js:752:3) at /usr/local/lib/node_modules/chromedriver/install.js:282:10 errno: -13, syscall: 'mkdir', code: 'EACCES', path: '/usr/local/lib/node_modules/chromedriver/lib/chromedriver' } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! chromedriver@73.0.0 install: node install.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the chromedriver@73.0.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/henrybrenton/.npm/_logs/2019-04-17T05_17_43_241Z-debug.log henrybrenton@Henrys-MacBook-Pro ~/HBSeleniumBasicsTT17042019 $ npm install selenium-webdriver@3 npm WARN saveError ENOENT: no such file or directory, open '/Users/henrybrenton/HBSeleniumBasicsTT17042019/package.json' npm WARN enoent ENOENT: no such file or directory, open '/Users/henrybrenton/HBSeleniumBasicsTT17042019/package.json' npm WARN HBSeleniumBasicsTT17042019 No description npm WARN HBSeleniumBasicsTT17042019 No repository field. npm WARN HBSeleniumBasicsTT17042019 No README data npm WARN HBSeleniumBasicsTT17042019 No license field.

Is this a common issue? Any advice in resolving this would be much appreciated - many thanks!

Henry