Managing Packages with Npm - How to Use package.json

Thank you so much! I was getting so frustrated trying to figure out what wasn’t working.

1 Like

Based on I found the answer.
You neet to config your webserver then return of package.json in URL must be text/plain (not application/json) in header.
Example with Apache and .htaccess file
AddType text/plain .json
See the picture below for more details.

This one caused me trouble in the past too. I gave up on it for a while.

This works;

  1. click on “Show” with the sunglasses

  2. then click on “In a New Window”

  3. click on the address bar (mine is in Safari)
    address bar

  4. copy the full address that appears
    actual address

  5. submit to FCC

Thanks to cmccormack for helping me out.

this worked for me! I copied the server.js and packaje.json files from github and it worked.