Tell us what’s happening:
I’ve added the dependency and also required it in App.Js. Still unable to pass the test.
Repl : https://repl.it/@akshitchaturved/boilerplate-infosec
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.3 Safari/605.1.15
.
Challenge: Install and Require Helmet
Link to the challenge:
Sky020
#2
npm install --save-exact helmet@3.21.3
where should I enter this code?
If you check package.json , I’ve already mentioned 'helmet':"^3.21.3"
over there , so the code should work.
Sky020
#4
In the terminal.
The issue is the ^
(caret) in the version. The caret means any version <4.0.0
.
So, if you read the whole issue, another solution is to manually alter the package.json
to delete the caret.
Hope this clarifies.
1 Like