I'm trying to create Full Stack MERN Project using React Redux, Node, Express, MongoDB.
When I use below command, I'm getting an error with a warning.
npm install body-parser corsexpress mongoose nodemon
npm ERR! 404 Not Found - GET https://registry.npmjs.org/corsexpress - Not found npm ERR! 404 npm ERR! 404 'corsexpress@*' is not in this registry.
npm WARN config global--global
,--local
are deprecated. Use--location=global
instead.
CodePudding user response:
If you mean to use the cors
middleware, run npm install cors
.
CodePudding user response:
Typing command npm install body-parser cors express mongoose nodemon
instead of typing npm install body-parser corsexpress mongoose nodemon
Afterwards issue fixed by removing 'corsexpress' from pacakge.json dependencies.