skip to Main Content

Reactjs – my react js get installed first and get deleted

C:UsersasusDesktopabc> npx create-react react-app npm ERR! could not determine executable to run npm ERR! A complete log of this run can be found in: C:UsersasusAppDataLocalnpm-cache_logs2023-05-01T15_44_34_936Z-debug-0.log C:UsersasusDesktopabc>npx create-react-app my-cart Creating a new React app in C:UsersasusDesktopabcmy-cart. Installing packages. This might take…

VIEW QUESTION

Reactjs – UnhandledPromiseRejectionWarning: CastError: Cast to Number failed for value "[email protected]" (type string) at path "mobile" for model "users"

const express = require('express'); const app = express(); const Register = require('./model/register') require('./db/conection'); app.use(express.json()); app.get('/' , async(req,res)=>{ res.send("hello") }) app.get('/search/:key',async(req,res)=>{ let sKey=req.params.key; console.log(typeof(sKey)); let searchData=await Register.findOne({'$or':[ {name:sKey}, {email:sKey}, {address:sKey}, {mobile:sKey} ]}) res.send(searchData); }) app.listen(5000,()=>{ console.log("server start"); console.log(`http://localhost:5000`) }); I am…

VIEW QUESTION
Back To Top
Search