Reputation: 190
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
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