Endrit Shabani
Endrit Shabani

Reputation: 190

the file doesnt exist but still im getting error for that

I'm creating a react-native app, I use expo so I can run it, but when it runs, it gives me this error everytime,

ENOENT: no such file or directory, open 'C:\Users\KobitPC\Desktop\react\online\ppm20- 
onlineshop\assets\favicon.png'

I don't have a file named like this, and I don't import it anywhere on my components

Upvotes: 1

Views: 1528

Answers (1)

Edison Pebojot
Edison Pebojot

Reputation: 318

Delete package-lock.json and node_modules folder, then run npm install. If the above mentioned didn't work. Try the following:

npm cache clean --force && npm i -g npm && npm i

Upvotes: 3

Related Questions