Coder Social home page Coder Social logo

Comments (7)

aZuh7 avatar aZuh7 commented on May 31, 2024 1

I got this to work for me. I needed to use node version 12.14.1, the current version as of the books publishing. I am using windows 11. Try: Uninstall node.js

Install nvm-windows: https://github.com/coreybutler/nvm-windows#installation--upgrades

In the terminal type nvm install 12.14.1 Followed by nvm use 12.41.1

then clone the repo and use npm install.

This also worked for me, but a couple notes:

  1. I think you meant nvm use 12.14.1 .
  2. Windows users, make sure you are running your terminal or IDE in administrator mode, otherwise nvm use 12.14.1 will not work.
  3. For some windows users, make sure to navigate to your C:\Program Files or C:\Program Files(x86) directory to ensure the nodejs folder was completely deleted when you uninstalled node.js, otherwise you will get an "exit status 145: The directory is not empty." error when running nvm use 12.14.1.

from api.

Yuzeyzer avatar Yuzeyzer commented on May 31, 2024

Same for me... I also installed node-pre-gyp locally and used 14.15.3 node version, but it did not change anyting. Seems like many packages that was used here are outdated.

Solution: If you will remove bcrypt package from package.json and try once more without bcrypt it will work. You just have to install bcrypt manually by using "npm i bcrypt" it will download latest version without any errors.

Warning: But be carefull, i am not sure that using latest version of bcrypt good idea here, cause some modules from older bcrypt could be removed/renamed in newer one and you may have problems in future.

from api.

Yuvraj102 avatar Yuvraj102 commented on May 31, 2024

Makes me wonder if wether or not I should follow the book @Yuzeyzer

from api.

Dmtreaqq avatar Dmtreaqq commented on May 31, 2024

the problem is with bcrypt package, which needs python installed on your pc

I just installed Python from Microsoft store and npm install worked without errors

Or we need to pick another bcrypt package from npm
https://stackoverflow.com/a/29320712/12654113

from api.

PurpleSPC avatar PurpleSPC commented on May 31, 2024

I got this to work for me. I needed to use node version 12.14.1, the current version as of the books publishing. I am using windows 11.
Try:
Uninstall node.js

Install nvm-windows: https://github.com/coreybutler/nvm-windows#installation--upgrades

In the terminal type nvm install 12.14.1 Followed by nvm use 12.41.1

then clone the repo and use npm install.

from api.

cstarbird avatar cstarbird commented on May 31, 2024

I ran into the same issue while trying to follow the book on a Debian (bullseye) vm that did not have python installed. I was able to solve it by replacing bcrypt with bcryptjs (latest version) in the package.json. We'll see if it comes back to bite me later, but so far so good.

from api.

xgqfrms avatar xgqfrms commented on May 31, 2024

this repo's codes need to be updated to keep up with date

# latest version ❌
$ node -v
v18.12.0
# nvm
$ nvm use 16.18.0

# old version ✅
$ node -v
v16.18.0

from api.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.