Skip to content

Common issues and their solutions

Alyssa edited this page Aug 27, 2024 · 5 revisions

Before reporting an issue, please check this page for most common errors and their solutions.

Failed to install bcrypt

This can happen for a various reasons:

  1. You are running npm as root (EPERM)

  2. You are running npm on a read-only file system or a fs with '/tmp' being read-only (EACCESS)

  3. It's a new(untested) or unsupported release of NodeJS/npm and pre-built binaries are not available. (ERR:node-pre-gyp(404)). You need python and compilers as instructed in the installation instructions.

  4. You are in a offline environment that cannot reach Github. If your environment cannot reach the internet, installation will fail when node-pre-gyp cannot download the binaries from Github. One solution is to change the binary host with the following argument:

npm install bcrypt --bcrypt_lib_binary_host_mirror=https://INTERNAL_HOST/artifactory/node-pre-gyp-binaries