This project was bootstrapped with yarn init
and created with these packages:
- express
- mongoose
- nodemon
- cors
- dotenv
- body-parser
- colors
Installs node_modules folder according to the dependencies. This is the must command for starting the project.
Runs the app in the development mode.
Open http://localhost:5000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
In this template project, packages were installed in these versions;
"dependencies": {
"body-parser": "^1.20.2",
"colors": "^1.4.0",,
"cors": "^2.8.5",
"dotenv": "^16.0.3",
"express": "^4.18.2",
"mongoose": "^7.0.0",
"nodemon": "^2.0.21"
}
yarn remove <package-name>
|npm uninstall <package-name>
yarn add <package-name>
|npm install <package-name>
- Change the version of the package from package.json file to version what you want.
- Download node_modules folder with new package versions.
yarn install
|npm install