Closed HartS closed 1 year ago
I uninstalled node and reinstalled with apt:
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt-get install -y nodejs
And was able to install bcrypt, so this is somehow specific to the snap installation, even though the node version is the same
Native modules need access to gcc, and have to load code outside the sandbox. This is not compatible with snap security model
I installed dependencies (python and build-essentials) on a new Ubuntu server. Node was installed through snap (
sudo snap install node --classic
). npm was updated to the latest version (8.5.0)The
npm install --save bcrypt
command is failing (I also triedbcrypt@5.0.0
) with vague output:With 5.0.0 there is one additional warning:
Checking the build debug shows nothing helpful... this is the only thing that looks promising: