Search code examples
node.jsexpressnpmexpress-session

express-session: NPM dependency not listed in documentation?


Following this tutorial, I have installed express-session using this code:

 npm install express-session --save --save-exact

But now when I try to run the code, node is telling me I need a package called "buffer-crc32"

I see this listed as a require() in the drive where I install express-session, but I'm confused because the index.js file stored on my computer seems different from the one shown on github here.

What gives? Why isn't that dependency installing when I run "npm install" or "npm update"? Thanks.


Solution

  • I figured it out. I had to stop using '--save-exact' in my npm install command and update the version in my package.json document