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 trialTomislav Bermanec
1,270 Pointssudo: npm: command not found
After I run command "sudo npm install chromedriver -g" terminal writes out the message "sudo: npm: command not found"
[linux@localhost selenium-basics]$ which npm /var/lib/snapd/snap/bin/npm [linux@localhost selenium-basics]$ sudo npm install chromedriver -g [sudo] password for linux: sudo: npm: command not found [linux@localhost selenium-basics]$ npm -v 5.6.0
Do you know where is the problem?
2 Answers
Artan Ahmeti
3,046 PointsTry reinstalling nodejs again, also have a look at this link in stackoverflow : https://stackoverflow.com/questions/31472755/sudo-npm-command-not-found/34558299
Tomislav Bermanec
1,270 PointsReinstalling did the trick. Thanks!