Relative Content

Tag Archive for node.jsnode-modules

I’m trying to deploy my project on Render but it gives me errors

npm error code ERESOLVE npm error ERESOLVE could not resolve npm error npm error While resolving: [email protected] npm error Found: [email protected] npm error node_modules/cloudinary npm error cloudinary@”^2.4.0″ from the root project npm error npm error Could not resolve dependency: npm error peer cloudinary@”^1.21.0″ from [email protected] npm error node_modules/multer-storage-cloudinary npm error multer-storage-cloudinary@”^4.0.0″ from the root project […]

I’m trying to deploy my project on Render but it gives me errors

npm error code ERESOLVE npm error ERESOLVE could not resolve npm error npm error While resolving: [email protected] npm error Found: [email protected] npm error node_modules/cloudinary npm error cloudinary@”^2.4.0″ from the root project npm error npm error Could not resolve dependency: npm error peer cloudinary@”^1.21.0″ from [email protected] npm error node_modules/multer-storage-cloudinary npm error multer-storage-cloudinary@”^4.0.0″ from the root project […]

I’m trying to deploy my project on Render but it gives me errors

npm error code ERESOLVE npm error ERESOLVE could not resolve npm error npm error While resolving: [email protected] npm error Found: [email protected] npm error node_modules/cloudinary npm error cloudinary@”^2.4.0″ from the root project npm error npm error Could not resolve dependency: npm error peer cloudinary@”^1.21.0″ from [email protected] npm error node_modules/multer-storage-cloudinary npm error multer-storage-cloudinary@”^4.0.0″ from the root project […]

The entire JS file gets executed when I use the require() function. Why?

console.log(“Hello”); console.log(“Good Morning”); function evening() { console.log(“Good Evening”); }; module.exports = evening; This is the code in the first JS file. I only want to execute the “evening” function here. But when I use the require function in the other JS file, all the code of the first JS file gets excuted. Why is that? […]