Helmet in package.json not recognized

Tell us what’s happening:

Your project link(s)

solution: https://boilerplate-infosec.4slam.repl.co

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0.

Challenge: Install and Require Helmet

Link to the challenge:

The reason why the tests are not passing is because the tests for this challenge are broken. To pass this challenge, simply uninstall the latest version of Helmet and install any version of Helmet 2. I was facing the same issue when I did this challenge. I hope this helps!

Do you have that exact version in package.json or have used command written in instructions?

Welcome, there.

Looking at your code:

"dependencies": {
		"express": "^4.14.0",
		"helmet": "^3.21.3"

The caret (^) indicates a non-exact version. The instructions do give you a command you can use to install an exact version:

npm install --save-exact package@version

Hope this clarifies

@Sky020 Shouldn’t the test be accepting the caret?


Edit: I forked the project and it is passing for me.

Correct. I submitted the users project link, and it passed. Thanks, @lasjorg , I had forgotten we included that.

Seems like an issue of the project just not running during the submission.

Still not passing for me. With or without the caret preceding Helmet’s version no.

The app was absolutely running every time I tested.

The test doesn’t seem to be giving consistent results, which is probably why there are several help requests for this step .

I’m going to move on but the track will show I didn’t complete this step.

My bad! :slightly_frowning_face:

Didn’t realize I was blocking scripts (in the browser) that the test apparently needs. Passed after I unblocked them

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