profile
viewpoint

Ask questionsnpm install bcrypt@3.0.6 fails with node 12.3.0

node --version: v12.3.0 Ubuntu 18.04

In file included from ../node_modules/nan/nan.h:53:0,
                 from ../src/bcrypt_node.cc:1:
/home/cliff/.node-gyp/12.3.0/include/node/node.h:107:12: fatal error: util-inl.h: No such file or directory
 #  include <util-inl.h>
            ^~~~~~~~~~~~
compilation terminated.

Confirmed that it installs fine in mode v12.2.0

kelektiv/node.bcrypt.js

Answer questions mike-marcacci

@robertIsaac make sure to run npm rebuild or reinstall your dependancies after upgrading. If the problem persists and is identical to the one listed above, double check that you have 12.3.1 installed. It's very unlikely that you would receive this exact error on v12.3.1 because the file in question does in fact exist. If the error is different, then you're probably experiencing a different issue.

For me, bcrypt installs and works correctly on Mac and docker containers running v12.3.1. This issue can probably be closed.

useful!
source:https://uonfu.com/
answerer
Mike Marcacci mike-marcacci Woodside, CA http://marcacci-labs.com/ I'm the president of Marcacci Labs, a committed proponent of FOSS, and an avid adventurer.
Github User Rank List