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

yarn-no-save

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yarn-no-save

Enabling --no-save/-N option to Yarn cli commands

  • 1.0.29
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

yarn-no-save

Enabling --no-save / -N option to Yarn cli commands. The option prevents saving to package.json when you do yarn add stuff.

How to Use

  1. First you should have yarn installed globally. https://classic.yarnpkg.com/en/docs/install#mac-stable

  2. install yarn-no-save globally:

    $ yarn global add yarn-no-save
    
  3. Now you can use Yarn with --no-save / -N option in your command:

    $ yarn add --no-save xxxxxxxx
    

To Mention

  1. The --no-save / -N option will be available in help message by typing "yarn help add" or "yarn add --help".

  2. You are free to uninstall any packages installed with --no-save / -N option by executing "yarn uninstall xxxxx" (postuninstall scripts will be executed by doing this, while the same thing won't happen by just deleting the folders from node_modules).

  3. You can reset Yarn to default at anytime by reinstall yarn:

    $ npm i -g yarn
    
  4. If you want --no-save option available again after reinstalling Yarn, just run the following command again:

    $ yns
    

Keywords

FAQs

Package last updated on 03 Aug 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

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