complete-javascript-course icon indicating copy to clipboard operation
complete-javascript-course copied to clipboard

Spokify issue please need help

Open ManishBisht17 opened this issue 1 year ago • 3 comments

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

[email protected] 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 "

ManishBisht17 avatar Apr 05 '24 11:04 ManishBisht17

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.

akozdev avatar Apr 05 '24 12:04 akozdev

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 avatar Apr 06 '24 12:04 ManishBisht17

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

ManishBisht17 avatar Apr 06 '24 16:04 ManishBisht17