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 am using stackblitz since I cant use replit but it wont work. Here is the live preview: https://learningnpm-wczy--5500--41fbae16.local-credentialless.webcontainer.io

###Your project link(s)

solution: https://learningnpm-wczy--5500--41fbae16.local-credentialless.webcontainer.io

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.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

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

Please link to the editor so we can see the code.


How did you create the project, did you use the GitHub boilerplate?

You can add https://stackblitz.com/github/ in front of the repo to open it.

https://stackblitz.com/github/freeCodeCamp/boilerplate-npm/

I tested it and I’m getting CORS blocked. I think the issue is that the Stackblitz is running on localhost (you can see the origin getting logged as http://localhost:3000) but the test is requesting a URL from the exposed web container.

I would suggest you complete it running locally instead.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.