Managing Packages with NPM - How to Use package.json, the Core of Any Node.js Project or npm Package

Tell us what’s happening:
So frustrating. Not clear at all. I’m not seeing anything to share from Replit other than the URL from the open project… Tried many things. Taking me a half hour to even get started on this module…

Your project link(s)

solution: boilerplate-npm - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15

Challenge: Managing Packages with NPM - How to Use package.json, the Core of Any Node.js Project or npm Package

Link to the challenge:

When you try to run the project, it should show an error telling you that you have a problem caused by invalid JSON.

From your package.json:

  "dependencies": {
		"express": "^4.14.0"
    "version": "1.1.2"
	},

Why did you add "version": "1.1.2" there?

If I go to jsfiddle.net and try to run the following:

const obj = {
  "dependencies": {
    "express": "^4.14.0"
    "version": "1.1.2"
  }
}

console.log(obj);

Why does it fail?

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