Debug School

rakesh kumar
rakesh kumar

Posted on • Updated on

Different way to install dependency in react js

Install the csvtojson library using the following command:

npm install csvtojson
Enter fullscreen mode Exit fullscreen mode

If you're facing issues while installing the csvtojson library, you can try using the --force or --legacy-peer-deps flags to force the installation. Here's how you can use them:

npm install csvtojson --force
Enter fullscreen mode Exit fullscreen mode
npm install csvtojson --legacy-peer-deps
Enter fullscreen mode Exit fullscreen mode

The --force flag bypasses some installation checks and forces the installation of the package. The --legacy-peer-deps flag allows the installation to proceed even if there are peer dependency warnings.

To run dependencies in client and server side

  npm i
Enter fullscreen mode Exit fullscreen mode

run client side

 npm start
Enter fullscreen mode Exit fullscreen mode

run server side

  npm run dev
Enter fullscreen mode Exit fullscreen mode

How to connect new connection in mongodb

in env

Image description

mongodb+srv://joy:AtyW9tm9VP4iY14o@cluster0.8gmujlu.mongodb.net/hemang?retryWrites=true&w=majority

In mongodb-compass
Copy MONGO_URI in env and paste in mongodb

Image description

Top comments (0)