Tell us what’s happening:
I follow the hint but I can not pass the challenge.
// running tests
helmet version 3.21.3 should be in package.json
// tests completed
Please help me to solve this. thanks
Your code so far
my code:
myapp.js:
var express = require('express');
var app = express();
const helmet = require('helmet');
package.json:
{
"name": "fcc-infosec-challenges",
"version": "0.0.1",
"description": "fcc backend boilerplate",
"main": "server.js",
"scripts": {
"start": "node myApp.js"
},
"dependencies": {
"express": "^4.14.0",
"helmet": "3.21.3"
},
"keywords": [
"node",
"hyperdev",
"express",
"freecodecamp"
],
"license": "MIT"
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36
.
Challenge: Install and Require Helmet
Link to the challenge: