Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pnpm

Package Overview
Dependencies
Maintainers
2
Versions
1092
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pnpm

Fast, disk space efficient package manager

  • 8.15.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
16M
decreased by-16.8%
Maintainers
2
Weekly downloads
 
Created

What is pnpm?

pnpm is a fast, disk space efficient package manager for JavaScript that works with the npm and Yarn registries. It uses hard links and symlinks to save disk space and improve installation speed. It also has a strict node_modules structure that helps to avoid issues with phantom dependencies.

What are pnpm's main functionalities?

Installing packages

Installs the lodash package into your project. This is similar to npm install or yarn add.

pnpm install lodash

Creating a new project

Initializes a new package.json file for your project, similar to npm init or yarn init.

pnpm init

Adding a package to dependencies

Adds the react package to your project's dependencies, similar to npm install react --save or yarn add react.

pnpm add react

Adding a package to devDependencies

Adds the typescript package to your project's devDependencies, similar to npm install typescript --save-dev or yarn add typescript --dev.

pnpm add --save-dev typescript

Updating packages

Updates all the packages in your project to their latest versions based on the specified ranges in package.json, similar to npm update or yarn upgrade.

pnpm update

Running scripts

Runs the script named 'build' specified in your package.json, similar to npm run build or yarn run build.

pnpm run build

Other packages similar to pnpm

Keywords

FAQs

Package last updated on 15 Feb 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc