Tell us what’s happening:
Describe your issue in detail here.
i cant figure this out i have been trying for days now and im still stuck please help me.
Your code so far
Your browser information:
User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14526.69.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.82 Safari/537.36
Challenge: How to Use package.json, the Core of Any Node.js Project or npm Package
It is not valid JSON. that "author": "Jane Doe", needs to be part of that JSON object, like right under your "name": "fcc-learn-npm-package-json", key/value.
This is why when I try to run your package, I get:
npm start
npm ERR! code EJSONPARSE
npm ERR! file /home/runner/hTgCbSidCF_/package.json
npm ERR! JSON.parse Failed to parse json
npm ERR! JSON.parse Unexpected string in JSON at position 232 while parsing '{
npm ERR! JSON.parse "name": "fcc-learn-npm-package-json",'
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2022-04-14T14_15_17_977Z-debug.log
exit status 1
in the console. The message is a little cryptic, but I think the point is that it can’t parse the JSON.
As to solving this, you need to learn what a valid JSON file is. Do what professional developers do - google it and look it up. You’re going to have to understand what a properly formatted json file looks like.