您好,我是 nodejs 的新手,当我运行我的应用程序时出现此错误“错误:连接 ECONNREFUSED 127.0.0.1:80”这是我的代码
const axios = require('axios')
const url = 'api.openweathermap.org/data/2.5/weather?q=London,uk&appid=4dd23b28fb57078c0d5ec9c653e203b2'
axios.get(url)
.then((response) =>{
console.log(response)
})
.catch(function (error) {
console.log(error);
})
Run Code Online (Sandbox Code Playgroud)
先感谢您