error enoent no such file or directory in node js code example
Example 1: npm ERR! enoent ENOENT: no such file or directory, open
rm -rf node_modules
npm install
git commit package-lock.json
git push
Example 2: Error: ENOENT: no such file or directory, open
cloudinary.config({
cloud_name: process.env.CLOUDINARY_NAME,
api_key: process.env.CLOUDINARY_API_KEY,
api_secret: process.env.CLOUDINARY_API_SECRET,
shorten: true,
secure: true,
ssl_detected: true
})
const response = await cloudinary.uploader.upload(req.file.path)
console.log(response)