npm install bcrypt

Locally, when I do:

npm install bcrypt

I get:

ImportError no module named site

But when I deploy to heroku, it installs just fine. What might be my issue? I tried a few configurations, I have python 2.7 and node 0.8.17

To install bcrypt you shall meet all dependencies.

You also need a stable version of node:

node-gyp only works with stable/released versions of node. Since the bcrypt module uses node-gyp to build and install you'll need a stable version of node to use bcrypt.

For windows users there is an additional requirment:

Windows users should make sure to have at least node 0.8.5 installed and version >= 0.7.1 of this module.

Your error looks like Python error. Installing Python 2.x should help. site is in Python stdlib, so it should be always present.

If you already have Python installed, make sure its version is 2.x.