Prerequisites (Engineer Track)

Installing Node.js

macOS

Option 1: Official Installer

  1. Go to nodejs.org
  2. Download the LTS version (v20 or later)
  3. Run the installer

Option 2: Homebrew (Recommended)

1brew install node

Windows

  1. Go to nodejs.org
  2. Download the LTS version (v20 or later)
  3. Run the installer
  4. Restart your terminal

Linux (Ubuntu/Debian)

1curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
2sudo apt-get install -y nodejs
1curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
2source ~/.bashrc
3nvm install 20
4nvm use 20

Verify Installation

1node --version
2# Should show v20.x.x or later
3
4npm --version
5# Should show v10.x.x or later

Troubleshooting

"node: command not found"

  • macOS/Linux: Add Node to your PATH or restart your terminal
  • Windows: Restart your terminal or computer

Version is too old

If you have an older version installed:

1# Using nvm (recommended)
2nvm install 20
3nvm use 20
4
5# Or reinstall from nodejs.org

Permission errors on npm

Don't use sudo with npm. Instead, fix npm permissions:

1mkdir ~/.npm-global
2npm config set prefix '~/.npm-global'
3echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
4source ~/.bashrc

NPM Authentication (Required for Autodesk)

Autodesk blocks anonymous npm access. You must authenticate before running npm install.

Step 1: Connect to VPN

Make sure you are connected to GlobalProtect VPN (the globe icon, not the key icon).

Step 2: Login to JFrog in Browser

  1. Navigate to https://npm.autodesk.com/

  2. Click the Log in button in the top right corner:

JFrog Login

  1. Click SAML SSO to login with your Autodesk credentials:

Login with SSO

Step 3: Authenticate npm in Terminal

Run this command:

1npm login --registry=https://npm.autodesk.com/artifactory/api/npm/autodesk-npm-virtual/ --auth-type=web

A URL will appear in your terminal. Cmd+click (or Ctrl+click) the link to open it in your browser:

NPM Login Terminal

Since you're already logged into JFrog from Step 2, the authentication should complete automatically.

Step 4: Verify

1npm whoami --registry=https://npm.autodesk.com/artifactory/api/npm/autodesk-npm-virtual/

You should see your Autodesk username.

Troubleshooting npm auth

Error: Token Generation Prohibited

Complete Steps 1-2 first (login to JFrog in browser), then try Step 3 again.

Error: Invalid auth configuration found

1npm config fix

Error: 401 Unauthorized or 403 Forbidden

Your authentication may have expired. Re-run the login command:

1npm login --registry=https://npm.autodesk.com/artifactory/api/npm/autodesk-npm-virtual/ --auth-type=web

Check your existing auth:

1cat ~/.npmrc

You should see entries with _authToken for npm.autodesk.com.

Still stuck?

Ask in #tech-artifactory-build on Slack.