0

My El Capitan shows node installed in /usr/local/bin/node, but $which npm reports nothing.
I have Angular installed and which to play around with the MEAN stack which requires express and mangoDB.

My current path is: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

Online reading to install express shows I must issue npm command.
Can I install express using brew instead? Thanks

  • What is your PATH ? – user151019 Jan 21 '16 at 1:12
  • /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin – Fred J. Jan 21 '16 at 1:13
  • Why are you doing which npm but say you have /usr/local/bin/node ? What not say if you have npm and where that is – user151019 Jan 21 '16 at 1:16
  • to see if the npm command is available or not on my system so that I can install express in my web project dir. – Fred J. Jan 21 '16 at 1:18
  • Why mention /usr/local/bin/node ? what has that to do with npm – user151019 Jan 21 '16 at 1:18
1

I fixed it by downloading and installing node.js which also installed npm.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .