Skip to content

Instantly share code, notes, and snippets.

@rachelbaker
Created May 29, 2013 13:58
Show Gist options
  • Save rachelbaker/5670444 to your computer and use it in GitHub Desktop.
Save rachelbaker/5670444 to your computer and use it in GitHub Desktop.
Instructions for installing Node NPM and Handlebars on OSX

Requires:

Verify Homebrew is not sick:

brew doctor

Install Node (with NPM) with Homebrew:

brew install node

Add the following to your bash or zsh profile:

export NODE_PATH="/usr/local/lib/node"

export PATH="/usr/local/share/npm/bin:$PATH"

Be sure to add both PATH variables!

Restart Terminal, then run:

npm install -g handlebars

Handlebars is now installed globally.

@rachelbaker
Copy link
Author

handlebars templates/ > templates/templates.js

@TeresitaNader
Copy link

How can I test if it is running globally?

@anjum121
Copy link

anjum121 commented Dec 5, 2017

Thanks it help me, i was getting below error

       Running "exec:handlebars" (exec) task
       >> /bin/sh: handlebars: command not found
       >> Exited with code: 127.
       >> Error executing child process: Error: Process exited with code 127.
     Warning: Task "exec:handlebars" failed. Use --force to continue. 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment