npm install bcrypt报错...(已解决)

bcrypt 依赖环境

1.python2.x

2.node-gyp

npm i -g node-gyp

3.windows-build-tools (Windows环境)

npm i -g --production windows-build-tools

4.bcrypt

npm i bcrypt

在确保bcrypt 依赖环境都做好了之后,我在power shell中运行“ npm install bcrypt”命令时依然报错

查看npm看到有个bcryptjs,在零依赖性的纯JavaScript中优化了bcrypt。 兼容“ bcrypt”。

安装及使用方法如下:

相关推荐:

如何用Python TensorFlow进行超参数调优_通过Keras Tuner解决

RandomSearch比手动试错更可靠,因其随机采样独立性强、避免人为偏好导致的局部最优,能快速识别参数敏感性;配合对数均匀分布、合理max_trials和validation_split可提升实效性与复现性。 为什么RandomSearch比手动试错更可靠 手动改learning_rate、un...