yarn常用命令、设置镜像以及设置node-sass镜像源
node-sass
:rainbow: Node.js bindings to libsass
项目地址:https://gitcode.com/gh_mirrors/no/node-sass
免费下载资源
·
获取yarn
全局包存放路径
yarn global bin
项目初始化
yarn init
yarn init --yes
yarn init -y // 简写
全局安装
yarn global add packageName
安装项目依赖
yarn add packageName
安装开发依赖
yarn add packageName --dev
yarn add packageName -D // 开发依赖简写
移除安装包
yarn remove packageName
yarn global remove packageName // 全局
更新所有安装包
yarn upgrade
更新指定安装包
yarn upgrade packageName
安装package.json
文件中所有依赖包
yarn
yarn install //两种方法均可使用
运行脚本
yarn start
yarn run //跑命令
yarn
换源
yarn config set registry https://registry.npm.taobao.org --global
yarn config set disturl https://npm.taobao.org/dist --global
设置node-sass
镜像源
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
GitHub 加速计划 / no / node-sass
8.5 K
1.33 K
下载
:rainbow: Node.js bindings to libsass
最近提交(Master分支:2 个月前 )
6081731a
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)
---
updated-dependencies:
- dependency-name: actions/setup-node
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com> 9 个月前
62c0f46c
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com> 9 个月前
更多推荐
已为社区贡献1条内容
所有评论(0)