denniskigen/react-weather

Unexpected token < in JSON at position 0

Closed this issue · 1 comments

when i try to npm install the result show Unexpected token < in JSON at position 0 and preload animation

Hey @JenabB, do you have an .env.local file at the root of your project with the following contents?

REACT_APP_API_URL = 'https://api.openweathermap.org/data/2.5'
REACT_APP_API_KEY = The API key you obtained from openweathermap.org
REACT_APP_ICON_URL = 'https://openweathermap.org/img/w'