I’m trying to install ender.js.
I’ve run the following command
sudo npm install ender -g
but after the install (with no error), I can’t access ender command line.
I have the latest node and npm install (via brew)
anybody ran into this problem?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you just need to add
/usr/local/share/npm/binto your path.Try adding the following line to your bash profile (in
~/.profile, or~/.bashrc, etc.):Then source the file to your current environment with
. ~/.profile. And that should fix your issue.Going forward, I would recommend using
nvmto manage your node versions, and npm installs.