gpt4 book ai didi

node.js - 在 MAC 上安装 bcrypt

转载 作者:太空宇宙 更新时间:2023-11-04 00:53:08 27 4
gpt4 key购买 nike

我写这个问题只是为了帮助任何面临同样问题的人。

假设您安装了nodejs,并且对您的帐户拥有适当的sudo权限。按 COMMAND + T,输入终端

1) 类型:npm install -g node-gyp

2) 输入:npm install bcryptjs

3)转到您的 Mongoose 模式模型,例如models/user.js 和

直接在var mongoose = require('mongoose')下添加

var bcrypt = require('bcryptjs');

最佳答案

还有一个酿造 formulae对于同样的。

$ brew install bcrypt

关于node.js - 在 MAC 上安装 bcrypt,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31378007/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com