I’m currently taking the mastering react course, in have a problem in installing the dependencies for vidfly-api-node. Apparently there are some 404 errors when getting modules and trying to compile using node-gyp.
When i ran: npm i
I got the message below
I had the same issue. During Node Setup “bcrypt” couldn’t be installed.
The easy solution is just switch from the “bcrypt” npm module to bcrypt-nodejs. It’s the exact same API, but pure JS so no native add-ons to deal with.
Additionally, i just encountered a server issue where i couldn’t post new users. The solution i found was to replace the calls to bcrypt.genSalt(10) by bycrypt.genSaltSync(10), and bcrypt.hash(user.password, salt) by bcrypt.hashSync(user.password, salt).
The original methods have been updated and now need to be provided a callback function in parameters, but those works just as the old ones.
Update: “bcrypt-nodejs” is deprecated. install “bcryptjs” instead. I encountered a problem when started Section 8 (Calling Backend Services). I was not able to register user. After some research “bcryptjs” was the solution.
Hey guys. i had the same issue but after following the thread i solved it. Thank you so much. However in my database collection i am missing the users. does anyone know how to solve this ?