Open ManishBisht17 opened 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
.
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
"
now i know the solution first step - move the 'package-lock.json' and 'package.json ' into starter then
PS C:\Users\manis\Downloads\complete-javascript-course-master (1)\complete-javascript-course-master\18-forkify> npm start
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 "