Tell us what’s happening:
Describe your issue in detail here.
I don’t know what’s the problem? Can any one help with this “package.json should have a valid “author” key”?
Your project link(s)
solution: boilerplate-npm - Replit
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Challenge: How to Use package.json, the Core of Any Node.js Project or npm Package
Link to the challenge:
HI @poojaissar143 !
I was looking at your package.json
file and it doesn’t look like the correct starter file.
The correct starter file should have this information in it
{
"name": "fcc-learn-npm-package-json",
"dependencies": {
"express": "^4.14.0"
},
"main": "server.js",
"scripts": {
"start": "node server.js"
},
"repository": {
"type": "git",
"url": "https://idontknow/todo.git"
}
}
I would create a new Replit starter project just to make sure you have all of the correct starter code needed for these exercises.
https://replit.com/github/freeCodeCamp/boilerplate-npm
Then inside the package.json
file, you will need to add the author key.
If you need extra help, you can refer to the example they gave you here
"author": "Jane Doe",
Hope that helps!
system
Closed
January 7, 2023, 8:47am
5
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.