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

Tell us what’s happening:

I have done the npm init -y command on my terminal, it’s not going through, i also tried entering my name as author without running the npm command, it’s still the same issue. thank you

###Your project link(s)

solution: http://127.0.0.1:5500

Your browser information:

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

Challenge Information:

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

there is already a .json file in the boilerplate, you don’t need to run init. Edit the existing json file, start the server, and submit that localhost link

you start the server with npm run start

2 Likes

i did exactly that and it still doesn’t work, the terminal seems to throw an error.



figured it out. all i had to do was install express package. i did so by running “npm install express” to the terminal afterwich i did the “npm run start”
i got this

i copied that port number, ran it on my browser then pasted it into freecodecamp and all was good. thank you for your kind help!