The error in the following figure shows that the main entry is missing
Solution:
1. Delete the two files: node_modules and package-lock.json
2. Entering npm i on the command will download the package again
3. Check again and no error is reported
The error in the following figure shows that the main entry is missing
Solution:
1. Delete the two files: node_modules and package-lock.json
2. Entering npm i on the command will download the package again
3. Check again and no error is reported
The version has been updated. The previous version can’t be used
1. Use the NPM I joi command to download again
2. Modify the code together as
const joi = require(‘joi’);
Then don’t report mistakes
Problem:
Axios error: request body larger than maxbodylength limit
Solution:
const apiRequester = axios.create({
baseURL: apiURL,
maxBodyLength: Infinity //set the size
});