Search code examples
node.jsnode-gyp

Unable to install node.js package 'scrypt' using npm on windows


Installing scrypt using npm on windows is giving following error. The build is failing due to node-gyp

enter image description here


Solution

  • From github documentation node-Gyp is listed as pre-requisite as it is required to build scrypt. Make it sure to install node-Gyp

    using npm install -g node-gyp

    For successfull working of this plugin you will also need to install all the required tools and configurations using Microsoft's windows-build-tools

    using npm install --global --production windows-build-tools from an elevated PowerShell or CMD.exe (run as Administrator). for other options and alternatives follow node-gyp documentation

    Before installing scrypt Follow installation instructions given at github