🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

ci

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ci

Run npm ci using the appropriate Node package manager (npm, yarn, pnpm)

2.2.0
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

npx ci Latest version

A safer npm ci.

Run it in any npm project to install dependencies from lock using the appropriate package-manager (supports npm, yarn and pnpm).

If you like this project, please star it & follow me to see what other cool projects I'm working on! ❤️

Usage

Use in your npm project instead of npm ci:

npx ci

Why?

npm has a npm ci command to install dependencies from the lock file (eg. package-lock.json), ensuring all project contributors have the same dependencies.

This command is different across 3rd-party package-managers like yarn and pnpm, and can be confusing to remember when switching between projects.

This is where npx ci comes in:

  • Package-manager agnostic

    npx ci is a package-manager agnostic npm ci. You can run this in any project and dependencies will be installed appropriately.

    It's great for contributing to new projects!

  • Can use in any environment with a single command

    If yarn or pnpm isn't already installed, npx ci installs it for you.

    It's great for using it in CI/CD workflows!

  • Typo proof

    When you accidentally type npx when typing in npm ci, your dependencies still get installed.

    It's actually the safer option too!

Keywords

npm

FAQs

Package last updated on 03 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts