-
Notifications
You must be signed in to change notification settings - Fork 518
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.
This can happen for a various reasons:
-
You are running npm as root (EPERM)
-
You are running npm on a read-only file system or a fs with '/tmp' being read-only (EACCESS)
-
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.
-
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