Setting up new yarn nextjs project
yarn create next-app my-app # Create new project my-app
yarn install # Install all dependencies
yarn dev # Run development server
yarn add lodash # Add new package
yarn remove lodash # Remove a package
Depends on what version your on. For 12 next/future/image and 13 here's a fun trick: