package.json
lists all dependenciesnode_modules
are dependencies, do not upload to GitHub- NPM cheatsheet
# create package.json, list dependencies
npm init
# install locally to project
npm install $package --save
# install globally
npm install $package -g
# install in development only
npm install $package --save-dev
- uninstall and install:
npm uninstall -g create-react-app
thennpm install -g create-react-app