Cannot find module 'axios'

Hi everyone!

I am trying to run the following Lambda code, but it returns the error as described in the title. Is this not possible, or am I doing something wrong? I believe that the Axios library is included in Xano.

const axios = require('axios');
const chessUrl = 'https://api.chess.com/pub';const user = input.username;
axios.get(`${chessUrl}/player/${user}/games/archives`)  .then(response => Promise.all(response.data.archives.map(url => axios.get(url))))  .then(responses => {    const games = responses.flatMap(response => response.data.games);    console.log(JSON.stringify(games));  })  .catch(error => {    console.error(`Error: ${error.message}`);  });

Thanks for checking!

Kind regards,

Robert


1 reply