Semantic versioning challenge NPM

I am getting many error messages on the console when I enter in the code to pass the test. Is there s glitch with repl.it which what i am using to complete the NPM challenges I am changing the version of "moment " Below is my code :

{
	"name": "fcc-learn-npm-package-json",
	"dependencies": {
		"express": "^4.14.0"
    "moment": "2.10.2"

	},
	"main": "server.js",
	"scripts": {
		"start": "node server.js"
	},
	"engines": {
		"node": "8.11.2"
	},
	"repository": {
		"type": "git",
		"url": "https://idontknow/todo.git"
	}
}

Hello there,

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).


Now, you can see the formatted code is showing the syntax highlighting for your JSON. Notice how there is an inconsistency in the highlighting? This indicates a syntax error, which the console should describe with an error.

For future reference, it would be helpful, if you provide the link to your project code, and, potentially, the error message you are seeing.

Cheers

in between where am i missing the comment “moment” and "express?

Yes, comma missing there. Without the comma, it’s not valid JSON, so it’ll error.

I put the missing the comma and all i got was a bunch of errors

thats the messages I get even with inserting the comma

Nothing I am doing is working. Is there a reason?

I can type npm install into the code editor on repl.it? I am asking to make sure that I am understanding correctly?

I manually typed in nmp install and still get the same errror messages

still isn’t working i have no idea what the problem is…

What are the errors?

typed npm install manually on the console and it seems to want to work but then nope it keeps on giving me the errors on the right side. i typed in “moment”: “2.10.2” in the dependencies and nothing seems to work . I am seriously considering giving up i can’t do it

Did that nothing happens

Did you try re-cloning the project? When I clone the project from scratch, I experience no issues at all.

1 Like

Yes I recloned it and it worked