Skip to content

Using npm i

Austin Sullivan edited this page Feb 1, 2021 · 2 revisions

Using npm i

When using npm i make sure that you are in the correct directory for the package installation before running the install command.

  • frontend packages should be added from the /frontend directory
  • backend packages should be added from the /backend directory

Example with Adding a Project Dependency

If you are currently in the root CoC directory and need to add the prop-types package to the project dependencies for a frontend component, from the terminal:

  1. cd frontend/
  2. npm i prop-types

Related Errors/ESLint rules

no-extraneous-dependencies / <package> should be listed in the project's dependencies