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

Tell us what’s happening:
How can i add “@freecodecamp/example” and version “1.1.0”
to your dependencies in the backend program.

Your project link(s)

solution: boilerplate-npm - Node.js Repl - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

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

Link to the challenge:

Hello there,

I cannot get your app to start (the server is not starting). Are you able to get it going? The tests rely on your app being up and running.

Properties are comma separated. Look at the two properties of the dependencies object

"dependencies": {
  "@freecodecamp/example": "1.1.0"
  "express": "^4.14.0"
},

You should also get an error in the console.

npm ERR! code EJSONPARSE
npm ERR! path /home/runner/boilerplate-npm/package.json
npm ERR! JSON.parse Unexpected string in JSON at position 279 while parsing '{
npm ERR! JSON.parse     "name": "fcc-learn-npm-package-json",'
npm ERR! JSON.parse Failed to parse JSON data.
npm ERR! JSON.parse Note: package.json must be actual JSON, not just JavaScript.

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