Home > Mobile >  how do i download node.js 15.10.0 to mac
how do i download node.js 15.10.0 to mac

Time:11-12

when ever I put touch ~/.bash_profile in the terminal I get -bash: touch: command not found

I had it installed before but if I do npm -v, node -v, or nvm -v it always comes back as -bash: touch: command not found

Is there a way i can install node 15.10.0?

CodePudding user response:

There are several ways to install Node.js on a Mac. One of the most popular ways is via Node Version Manager: https://github.com/nvm-sh/nvm. The README shows you how to setup and use nvm for installing any Node.js version.

CodePudding user response:

On my Mac...

$ ls /usr/bin | grep touch
touch

If yours doesn't have it, then your system got messed up somehow.

If it is there, then you have removed /usr/bin from your $PATH variable, and you should add it back

  • Related