Hi All,
I’m new, and I’m trying to add version “2.14.0” of the “moment” package to the dependencies
field of my package.json file. Here’s what I have, but it fails once I try to run the code. How do I add the package? Or rather, explain what I’m missing?
{
"name": "fcc-learn-npm-package-json",
"dependencies": {
"express": "^4.14.0",
"package-name": "moment",
"version": "^2.14.0"
},
"main": "server.js",
"scripts": {
"start": "node server.js"
},
"repository": {
"type": "git",
"url": "https://idontknow/todo.git"
}
}
Challenge:
Managing Packages with Npm - Expand Your Project with External Packages from npm
Link to the challenge: