Skip to content

coderbri/duolingo-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

App Icon

Duolingo Clone

A clone of the famous language-learning app using NextJs, TypeScript, and PostgrSQL.


This repository is for learning purposes only.

Dependency Management

rm -rf node_modules package-lock.json
  • rm: Stands for “remove.” It deletes files and directories.
  • -r: Recursively deletes the contents of a directory.
  • -f: Forces deletion without prompting for confirmation.
  • node_modules: This is the folder where all installed dependencies are stored.
  • package-lock.json: This file locks the versions of dependencies to ensure consistency across installations.

Purpose:

This command deletes the entire node_modules folder and the package-lock.json file. This is useful for:

  • Clearing out corrupted or outdated dependencies.
  • Ensuring a clean slate before reinstalling all packages.
npm install --legacy-peer-deps
  • npm install: Installs all dependencies listed in package.json.
  • --legacy-peer-deps: Bypasses peer dependency conflicts and installs packages the way older versions of npm did (prior to npm v7).

Purpose:

This is particularly useful when:

  • Dependencies have incompatible peer dependencies that cause conflicts.
  • You’re using older libraries that aren’t fully compatible with the latest npm version’s strict peer dependency rules.

Why use this combination?

  • This sequence ensures that all dependencies are installed fresh without conflicts.
  • It effectively resolves version conflicts that might occur due to strict peer dependencies by falling back to older rules.

coderBri © 2024

About

This repository is for learning purposes only.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published