Help i always get this // running tests "dependencies" should include "moment" "moment" version should be "2.14.0" // tests completed

{
  "name": "Jane Doe",
  "version": "0.0.1",
  "description": "A simple Node app built on fastify, instantly up and running.",
  "main": "server.js",
  "scripts": {
    "start": "node server.js"
  },
  "dependencies": {
    "package-name": "version",
    "express": "^4.16.4",
    "helmet": "^3.14.0",
    "moment": "2.14.0",
    "fastify": "^3.14.1",
    "fastify-formbody": "^5.0.0",
    "fastify-static": "^4.0.0",
    "handlebars": "^4.7.7",
    "point-of-view": "^4.14.0"
  },
  "engines": {
    "node": "12.x"
  },
  "repository": {
    "url": "https://glitch.com/edit/#!/glitch-hello-node"
  },
  "license": "MIT",
  "keywords": [
    "node",
    "glitch",
    "express"
  ]
}

then i get this

// running tests “dependencies” should include “moment” “moment” version should be “2.14.0” // tests completed

am i doing anything wrong?

Challenge: Expand Your Project with External Packages from npm

Link to the challenge:

Did you use the correct starter project, the package.json file looks wrong. Also, can you please link to your live project?

https://larkssos.glitch.me

Use the starter project linked to on the first challenge page (the one I linked to).

1 Like

Hi @lakiwedlulane !

Welcome to the forum!

I agree that your json file looks really different then the one provided for you.

One thing I noticed was this part.

it should say
"name": "fcc-learn-npm-package-json",

The author field is where you should add a name
"author": "Jane Doe",

Using the right json file should fix the issue.

Hope that helps!

No difference at all

You need to use the correct starter project. This isn’t just about the package.json file. There are routes in the server.js file required for the tests which you will not have unless you use the correct starter.

Please link to this new project on replit.

How do you do that again?

Just click the starter project link I gave you in my first post. Start over and use that for all the challenges in Managing Packages with NPM.

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