question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Advanced Node and Express - Package Versioning

See original GitHub issue

Advanced Node and Express section needs package versions added to the instructions, as discussed in: https://github.com/freeCodeCamp/freeCodeCamp/pull/39080#pullrequestreview-479988596

Example: " Add passport.socketio version X.X.X, connect-mongo version X.X.X, and cookie-parser version X.X.X as dependencies and require them as passportSocketIo, MongoStore, and cookieParser respectfully. "

Before this is undertaken:

  • Wait for #39080 to be merged
  • Discuss which versions to use and how to convey this (express@^4.0.0 or express@~4.2.0)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
raisedadeadcommented, May 25, 2021

No rush. Thanks for confirming, I have removed the assignment since this is no longer a showstopper.

1reaction
ShaunSHamiltoncommented, Feb 26, 2021

Well, it has happened: https://forum.freecodecamp.org/t/authentication-with-socket-io-connect-mongo/448306

Last versions which definitely work:

"dependencies": {
    "bcrypt": "^5.0.0",
    "connect-mongo": "^3.2.0",
    "cookie-parser": "^1.4.5",
    "cross-env": "^7.0.2",
    "dotenv": "^8.2.0",
    "express": "^4.16.1",
    "express-session": "^1.17.1",
    "html": "^1.0.0",
    "mongodb": "^3.6.0",
    "node": "12.18.0",
    "passport": "^0.4.1",
    "passport-github": "^1.1.0",
    "passport-local": "^1.0.0",
    "passport.socketio": "^3.7.0",
    "pug": "^3.0.0",
    "socket.io": "^2.3.0"
  },

I have tested this. Now, discussion:

  1. Just ask for mongo-connect@3 to be installed
  2. Also change the lesson/code to work with this latest version?
Read more comments on GitHub >

github_iconTop Results From Across the Web

Advanced Node and Express | FreeCodeCamp - YouTube
I go though the Advance Node and Express challenges on FreeCodeCamp. Most of these challenges are just copy and paste, so they weren't...
Read more >
How to Manage Dependency Version More Efficiently
What is Semantic Versioning? The version number of npm packages has a specific format. The format is- MAJOR.MINOR.PATCH. According to the official documentation ......
Read more >
Advanced Node and Express - Authentication With SocketIO
Advanced Node and Express - Authentication With SocketIO ... Issue: Outdated connect-mongo methods. Solution: Downgrade connect-mongo to ^3.2.0 .
Read more >
Setting Up Automated Semantic Versioning For Your NodeJS ...
Automatically bumping the package version and uploading it to npm. In order to track the changes to our API in an automated way,...
Read more >
How do you handle api version in a Node/Express app
For example, a more elegant (though slightly advanced) solution can be: http://j-query.blogspot.ca/2013/01/versioned-apis-with-express.html ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found