curriculum icon indicating copy to clipboard operation
curriculum copied to clipboard

Information Security with HelmetJS - incorrect node version in glitch package.json

Open nikrb opened this issue 7 years ago • 3 comments

Describe the bug

Working through the challenge Information Security with HelmetJS - Hash and Compare Passwords Asynchronously I noticed the console complaining about the node version. It is looking for v4 but v8 is currently used.

EDIT: change challenge link to live!

To Reproduce

Steps to reproduce the behavior:

  1. Go to the challenge.
  2. In glitch project add bcrypt as a dependency and require it in server.js
  3. follow the instructions in the challenge, using bcrypt hash and compare
  4. open the logs window to see Could not find node 4.4.3, using 8, just before the console.log outputs.

Expected behavior

the message should not appear

Screenshots

n/a

Desktop (please complete the following information):

  • OS: ubuntu xenial
  • Browser firefox
  • Version 61.0.1 (64-bit)

Additional context

Note this challenge follows on from the previous challenge, hence step 2 above to include and require bcrypt.

nikrb avatar Aug 07 '18 18:08 nikrb

@nikrb in package.json node engine is v4.4.3 which is not currently supported by glitch. The below link gives a list of node versions supported by glitch https://nodeversions.glitch.me

Nirajn2311 avatar Aug 08 '18 04:08 Nirajn2311

@Nirajn2311 locally I use nvm with "lts" option, which gives 8.11.2. glitch console node -v gives 8.11.3 which is probably best for the time being? I don't really know enough about this so any guidance appreciated.

nikrb avatar Aug 08 '18 12:08 nikrb

Seems most of the challenge boilerplates need updating - or remove the node engine property?

nikrb avatar Aug 12 '18 07:08 nikrb