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 trialjlampstack
23,932 Pointsnpm install error
I keep getting the following error message...
bash: npm: command not found
4 Answers
jlampstack
23,932 PointsIt turns out I was on the wrong git branch.
jlampstack
23,932 PointsIt appears I was in the wrong git branch. Switching the branch to git checkout lesson-03-first_application solved the problem.
Jonathan Grieve
Treehouse Moderator 91,253 PointsIt looks like you still need to install npm onto your system.
Check this link for instructions on installing node.js and npm.
You can then verify if node and npm are installed by typing
node -v
and
npm -v
jlampstack
23,932 PointsThanks Jonathan Grieve . I do have it installed and still not working. Node version v6.11.3 and npm version 3.10.10
Any other suggestions?
jlampstack
23,932 PointsDoes it matter the location in which directory Node / npm is installed?
Eugene Mikhushkin
852 PointsNot compiling too, even on third branch and with npm and node.