Development Setup for Mac OS Users

in , , April 24th, 2024
MacBook Pro

The majority of developers use Windows. However, you can be just as successful in using a Mac if you know how to optimally set it up for development tasks. Below are the steps you can take to properly set up your machine as a developer in the case of using a Mac.

Install nvm using your terminal

Run this command:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/ install.sh | bash

You may be prompted to install “command line developer tools”. Simply follow the on-screen instructions to install these tools.

Verify that nvm was installed:

nvm -v

This command should return 0.39.1.

Install Node versions

v12.21.0

Node.js — Run JavaScript Everywhere

v14.19.0

Node.js — Run JavaScript Everywhere

Depending on the type of processor on your mac, you may be prompted to install Rosetta 2. I believe this will have happened when attempting to install Node.

Install gulp globally

nvm use 14.19.0
npm install --global gulp

Configure .zshrc file

Follow these steps to create a .zshrc file to allow you to use nvm outside of your system terminal (within vscode):

touch .zshrc 


nano .zshrc 


// Add this code to file:
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

After completing these steps, you should be able to execute npm install and gulp commands as needed in your development environment!

Author: An Phan


Got stuck on a step in this article?

We like to update our blogs and articles to make sure they help resolve any troubleshooting difficulties you are having. Sometimes, there is a related feature to enable or a field to fill out that we miss during the instructions. If this article didn't resolve the issue, please use the chat and let us know so that we can update this article!

 
 

Want to keep learning?

Our team of NetSuite professionals has written articles on a wide variety of NetSuite topics, from SuiteCommerce tips, to recommended NetSuite solutions, to available support services, and more! 

Your cart