Make sure you have them installed and you have configured paths in your command line. An easy way to install with command line compatibility is to use Homebrew. If you install homebrew, you can run brew install node; brew install npm

Answer from Juicestus on Stack Overflow
🌐
npm
docs.npmjs.com › downloading-and-installing-node-js-and-npm
Downloading and installing Node.js and npm | npm Docs
Be sure to install the version labeled LTS. Other versions have not yet been tested with npm. If you're using Linux or another operating system, use one of the following installers:
Discussions

What is the Best, better Way to Install Node.js, NPM on a mac? - Random - Pinegrow Community Forum
Hello! as it says above. I’m pretty sure this could either be ignored, or start a flame war. …or I’ll be totally blown away by everyone agreeing on one way! But Macports… https://www.macports.org/ Homebrew… … the stand alone Installer, made by the devs themselves? More on forum.pinegrow.com
🌐 forum.pinegrow.com
0
February 14, 2021
globally installing npm should not be the recommended way for Mac and Linux
Most people that use Node.js will have problems if they install Node.js globally, because they would require npm to install libraries globally with sudo. This got 1503 upvotes on StackOverflow. Thi... More on github.com
🌐 github.com
29
February 28, 2024
Installing Node/NPM/Vue on Mac
I still use my mid 2012 MacBook Pro daily for Vue, node and other stuff. The first thing I'd consider is updating to Mac OS 10.15. It's a free upgrade and is the newest OS version your MacBook can run. App Store link After that you'll want to install Homebrew. It's a package manager for OS X and Linux that makes installing things like node much easier. To install Homebrew, open Terminal which is inside the Utilities folder in the Applications folder. Copy and paste the following command into the terminal window and press enter. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" Once that finishes — it will probably take a while — type into the same window that you pasted into and press enter. brew update after that completes you'll need to add Homebrew to your $PATH, copy and paste this into that terminal window and press enter. export PATH="/usr/local/bin:$PATH" Now that Homebrew is setup, installing node is easy. In that same window copy and paste and press enter. brew install node One last command to install Vue. npm install -g @vue/cli All of the things from above when combined will do the following. Put you on the newest version of Mac OS X your computer can run, install NPM, node and Vue, and install Homebrew which will allow you to update node in the future by running "brew update node" in the terminal. More on reddit.com
🌐 r/vuejs
12
0
April 19, 2022
npm installation on macOS - Apple Community
I am having problems with npm packages installed on my MacOS big sur 11.6.3. Each time I try to install an npm package using terminal on VSCode or Simple Terminal I have an installation fail with this output: --------------------------------------------- npm ERR! More on discussions.apple.com
🌐 discussions.apple.com
April 27, 2021
🌐
Node.js
nodejs.org › en › download
Node.js — Download Node.js®
Node.js® is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.
🌐
PhoenixNAP
phoenixnap.com › home › kb › web servers › how to install npm and node.js on mac
How to Install NPM and Node.js on Mac | phoenixNAP KB
April 17, 2025 - This tutorial will show you how to install NPM and Node.js on Mac using the Homebrew package manager or the official PKG installer.
🌐
Kinsta®
kinsta.com › home › resource center › blog › node.js › how to install node.js and npm on windows, macos, and linux
How to install Node.js and npm on Windows, macOS, and Linux
May 31, 2024 - Therefore, you don’t need to install npm separately. Then, click Continue to move forward with the installation. Node.js macOS installation properties.
🌐
Jason McCreary
jasonmccreary.me › articles › installing-node-js-npm-redis-mac-os-x
Installing Node.js, npm, and redis on Mac OS X
December 10, 2011 - After scouring the web for days, this post aims to provide concise, central instructions for installing Node.js, npm, and redis on Mac OS X.
Find elsewhere
🌐
Carmatec
carmatec.com › home › how to install node.js and npm on windows, macos, & linux
How to Install Node.js and npm on Windows, macOS, & Linux
August 23, 2024 - Learn how to install Node.js and npm on Windows, macOS, and Linux with this step-by-step guide, ensuring your JavaScript development.
🌐
Treehouse
treehouse.github.io › installation-guides › mac › node-mac.html
Installing Node.js® and NPM on Mac
Install Homebrew. Follow the steps on the How to Install Homebrew on Mac instruction guide to install Homebrew. Installing Node.js® and NPM is pretty straightforward using Homebrew. Homebrew handles downloading, unpacking and installing Node and NPM on your system.
🌐
Pinegrow Community
forum.pinegrow.com › general › random
What is the Best, better Way to Install Node.js, NPM on a mac? - Random - Pinegrow Community Forum
Hello! as it says above. I’m pretty sure this could either be ignored, or start a flame war. …or I’ll be totally blown away by everyone agreeing on one way! But Macports… https://www.macports.org/ Homebrew… … the stand alone Installer, made by the devs themselves?
Published   February 14, 2021
🌐
HashStudioz Technologies
hashstudioz.com › home › how to install node.js and npm on windows and mac?
Install Node.js and NPM Guide: Easy Steps for Windows and Mac
September 4, 2025 - $ sudo npm install npm –global // Update the npm CLI client · Node.js is now installed on your Mac system. Exciting, isn’t it?
🌐
Positiwise
positiwise.com › home › how to install npm and node.js on mac and windows
How to Install NPM and Node.js on Mac and Windows?
July 4, 2024 - A detailed comprehensive guide providing every step to install NPM and Node.js on Windows and macOS systems.
🌐
GitHub
github.com › nodejs › package-maintenance › issues › 591
globally installing npm should not be the recommended way for Mac and Linux · Issue #591 · nodejs/package-maintenance
February 28, 2024 - I agree with them, it's the safest and mo way to install Node.js. The list of things that creates this kind of permission issues for our users: distro-specific packages (deb, rpm, brew, port, ...) ... I've personally fixed 100+ computers with this problem across my life. Fixing this requires some not-so-nice solution like sudo chown -R $(whoami) ~/.npm.
Published   Feb 28, 2024
🌐
Reddit
reddit.com › r/vuejs › installing node/npm/vue on mac
r/vuejs on Reddit: Installing Node/NPM/Vue on Mac
April 19, 2022 -

I’m needing some assistance with installing node, npm, Vue on my mid-2012 Mac book pro, running 10.10.5 Yosemite.

I’ve done a fresh wipe to factory and it’s been rough. I’ve tried many things, but mostly getting errors since the OS is no longer supported.

If anyone is able to help, I’d appreciate it.

Top answer
1 of 5
5
I still use my mid 2012 MacBook Pro daily for Vue, node and other stuff. The first thing I'd consider is updating to Mac OS 10.15. It's a free upgrade and is the newest OS version your MacBook can run. App Store link After that you'll want to install Homebrew. It's a package manager for OS X and Linux that makes installing things like node much easier. To install Homebrew, open Terminal which is inside the Utilities folder in the Applications folder. Copy and paste the following command into the terminal window and press enter. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" Once that finishes — it will probably take a while — type into the same window that you pasted into and press enter. brew update after that completes you'll need to add Homebrew to your $PATH, copy and paste this into that terminal window and press enter. export PATH="/usr/local/bin:$PATH" Now that Homebrew is setup, installing node is easy. In that same window copy and paste and press enter. brew install node One last command to install Vue. npm install -g @vue/cli All of the things from above when combined will do the following. Put you on the newest version of Mac OS X your computer can run, install NPM, node and Vue, and install Homebrew which will allow you to update node in the future by running "brew update node" in the terminal.
2 of 5
3
If you're unable to get things working, I suggest either installing Linux onto that box, or to switch into a Web-based editor and environment like CodeSandbox or Stackblitz. Both of those sites let you develop and deploy straight from Chrome. I'd also try and isolate if it's a Vue-toolchain-only issue -- does React work?
🌐
Radixweb
radixweb.com › blog › installing-npm-and-nodejs-on-windows-and-mac
How to Install NPM and Node.js on Windows and Mac Devices?
September 17, 2025 - Learn what is NPM, how to install Node.js and NPM on Mac and Windows, Node.js installation with Homebrew and NVM and few points to consider while installing Node.js and NPM.
🌐
npm
npmjs.com
npm | Home
Relied upon by more than 17 million developers worldwide, npm is committed to making JavaScript development elegant, productive, and safe. The free npm Registry has become the center of JavaScript code sharing, and with more than two million packages, the largest software registry in the world.
🌐
Apple Community
discussions.apple.com › thread › 252707913
npm installation on macOS - Apple Community
April 27, 2021 - This is probably not a problem with npm. There is likely additional logging output above. I have tried different approaches to install the packages but with no success, not quite sure if it's a permission problem, or environment....not very well versed on these 2 topics. But on my MacBook air running a late version of macOS I believe it's 10.11, no such problems exist....I have developed a complete application there using the same packages I am trying to install on my iMac.
🌐
DEV Community
dev.to › osalumense › fixing-global-npm-install-permissions-on-macos-21ll
Fixing Global npm Install Permissions on macOS - DEV Community
July 5, 2025 - But I got a permissions error saying it couldn't create a folder in /usr/local/lib/.... This happens because macOS doesn't allow normal users to write to that system directory by default. ... Why: This creates a new directory in your home folder where you’ll install global npm packages safely, without needing admin rights.
🌐
Julio Trigo
juliotrigo.com › articles › installing-nodejs-and-npm-on-a-mac
Installing Node.js and npm on a Mac | Julio Trigo
Alternatively, we can install the latest LTS version directly: ... $ nvm ls -> v16.13.0 default -> 16.13.0 (-> v16.13.0) node -> stable (-> v16.13.0) (default) stable -> 16.13 (-> v16.13.0) (default) ... $ nvm use 16.13.0 Now using node v16.13.0 (npm v8.1.0) # Use the Node.js version set as `default` $ nvm use default
🌐
GitHub
gist.github.com › rcugut › c7abd2a425bb65da3c61d8341cd4b02d
Install node & npm on Mac OS X with Homebrew · GitHub
Install node & npm on Mac OS X with Homebrew. GitHub Gist: instantly share code, notes, and snippets.