jonasschmedtmann / complete-javascript-course

Starter files, final projects, and FAQ for my Complete JavaScript course
https://www.udemy.com/the-complete-javascript-course/?couponCode=C3GITHUB10
15.62k stars 16.76k forks source link

Spokify issue please need help #421

Open ManishBisht17 opened 6 months ago

ManishBisht17 commented 6 months ago

PS C:\Users\manis\Downloads\complete-javascript-course-master (1)\complete-javascript-course-master\18-forkify> npm start

forkify@1.0.0 start parcel index.html

Server running at http://localhost:1234 🚨 Build failed.

unknown: Entry C:\Users\manis\Downloads\complete-javascript-course-master (1)\complete-javascript-course-master\18-forkify\index.html does not exist "index.html does not exist why this is happening "

akozdev commented 6 months ago

It looks like npm was initialized in the 18-Forkify directory, but it should be initialized in the 18-Forkify/starter directory. To fix this:

1) In your Terminal, change the directory to starter using the cd starter command (assuming you're currently in 18-Forkify). 2) Run npm init there. 3) Run npm install parcel --save-dev. 4) Run npm start.

ManishBisht17 commented 6 months ago

starter/:1 Access to script at 'url:../img/icons.svg' from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, isolated-app, chrome-extension, chrome, https, chrome-untrusted. icons.svg:1

   Failed  ''i am getting this error 

"

ManishBisht17 commented 6 months ago

now i know the solution first step - move the 'package-lock.json' and 'package.json ' into starter then