Information seurity using hemletjs

Tell us what’s happening:
I don’t know what I am doing wrong there is an error and I can’t run the code
Your project link(s)
this is the error
 npm start

fcc-infosec-challenges@0.0.1 start /home/runner/boilerplate-infosec-5
node myApp.js


ReferenceError: helmet is not defined
at Object. (/home/runner/boilerplate-infosec-5/myApp.js:24:9)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47
npm ERR! errno 1
npm ERR! fcc-infosec-challenges@0.0.1 start: node myApp.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fcc-infosec-challenges@0.0.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2021-04-01T07_19_27_440Z-debug.log
exit status 1

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.90 Safari/537.36.

Challenge: Hide Potentially Dangerous Information Using helmet.hidePoweredBy()

Link to the challenge:

Hey there,

don’t know if it’s my fault,
gives me an Hmmmm.... We Couldn't Reach Your Repl Make sure your repl has a port open and is ready to receive HTTP traffic. error.

The error ReferenceError: helmet is not defined says that there is no helmet.

Did you install it?
Did you import it properly?

I can’t open the port the error is coming
yes I installed it properly

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.