Categories
Node

update packages in package.json

Check for newer packages and update package.json

npx npm-check-updates -u
npm install

— or —

install npm-check-updates globally
Categories
Node

Node – passport

Enclosed is some pretty cool technology for securing your node website using passport, connect-ensure-login, and connect-flash.  These modules, written by Jarad Hansen, allow secure login of your node website using oauth technology.

 

You will find references and a working example based on examples listed in the README.md file.

Categories
Node

Node passport example

A copy paste demo of passport using local strategy, flash messages, and connect ensure module.

https://github.com/mclark610/node-password.git

 

Categories
Node

node configuration errors

If your node configuration is hosed, it is best to perform the following steps:

  1. delete package-lock.json
  2. delete node-modules
  3. check package.json for any errant packages and remove
  4. npm install

Source:

https://github.com/facebook/create-react-app/issues/4076