Managing Packages with NPM - Expand Your Project with External Packages from npm

Tell us what’s happening: I’m having difficulty understanding how to solve the step. It’s asking me to Add version 1.1.0 of the @freecodecamp/example package to the dependencies field of your package.json file.

Note: @freecodecamp/example is a faux package used as a learning tool.

Your code so far

{
“name”: “fcc-learn-npm-package-json”,
“author”: “Aaron X”,
“description”: “A simple npm package”,
“keywords”: [ “freecodecamp”, “npm”, “package”, “json”, “node”, “javascript” ],
“license”: “MIT”,
“version”: “1.0.0”,
“dependencies” {
“package-name”: “version”,
“express”: “1.1.0”

}
“main”: “server.js”,
“scripts”: {
“start”: “node server.js”
},
“repository”: {
“type”: “git”,
“url”: “GitHub - freeCodeCamp/boilerplate-npm: A boilerplate for the freeCodeCamp curriculum.
}
}

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36

Challenge Information:

Managing Packages with NPM - Expand Your Project with External Packages from npm

Your dependencies currently has Express version 1.1.0. You can follow that example and add the new one just like that, below it.

"package-name": "version",

You can remove this, it’s just to explain the syntax. Again, the new package to add is called "@freecodecamp/example" and it’s version "1.1.0"

(just FYI, I’ve moved this to the Backend Development subforum)

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