zoukankan      html  css  js  c++  java
  • yarn使用

    安装

    # 在win10建议通过管理员来执行
    npm i yarn -g
    

    更换源

    # 淘宝源
    yarn config set registry https://registry.npm.taobao.org/
    yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
    
    # 原npm源
    yarn config set registry https://registry.npmjs.org/
    

    使用

    NPM YARN 说明
    npm init yarn init 初始化某个项目
    npm install/link yarn install/link 默认的安装依赖操作
    npm install taco —save yarn add taco 安装某个依赖,并且默认保存到package.
    npm uninstall taco —save yarn remove taco 移除某个依赖项目
    npm install taco —save-dev yarn add taco —dev 安装某个开发时依赖项目
    npm update taco —save yarn upgrade taco 更新某个依赖项目
    npm install taco --global yarn global add taco 安装某个全局依赖项目
    npm publish/login/logout yarn publish/login/logout 发布/登录/登出,一系列NPM Registry操作
    npm run/test yarn run/test 运行某个命令
  • 相关阅读:
    DQL、DML、DDL、DCL的概念与区别
    TeamViewer
    构建属于自己的ORM框架之二--IQueryable的奥秘
    某考试 T2 sum
    某考试 T1 line
    bzoj 2153: 设计铁路
    [SCOI2010]序列操作
    [SCOI2010]字符串
    [SCOI2010]传送带
    bzoj 2694: Lcm
  • 原文地址:https://www.cnblogs.com/testopsfeng/p/14131745.html
Copyright © 2011-2022 走看看