当前位置: 首页 > news >正文

威海做网站whhl可以搜索企业信息的软件

威海做网站whhl,可以搜索企业信息的软件,重庆高端设计公司,wordpress会员浏览技术很久不用#xff0c;就变得生疏起来。对npm深受其害#xff0c;决定对yarn再整理一遍。 yarn包管理器 介绍安装yarn帮助信息最常用命令 介绍 yarn官网#xff1a;https://yarn.bootcss.com#xff0c;学任何技术的最新知识#xff0c;都可以通过其对应的网站了解。无… 技术很久不用就变得生疏起来。对npm深受其害决定对yarn再整理一遍。 yarn包管理器 介绍安装yarn帮助信息最常用命令 介绍 yarn官网https://yarn.bootcss.com学任何技术的最新知识都可以通过其对应的网站了解。无法直接访问那就只能科学上网了。 安装yarn –global 或 -g选项很重要表示全局安装后期本机各个项目都得用这个包管理器 # 安装命令 npm install --global yarn帮助信息 不管在哪个操作系统Linux、Windows、Mac还是其它一般都是可以应用命令 -h或者命令 --help获得命令的帮助信息。 F:\yarnyarn -hUsage: yarn [command] [flags]Displays help information.Options:--cache-folder path specify a custom folder that must be used to store the yarn cache--check-files install will verify file tree of packages for consistency--cwd cwd working directory to use (default: F:\yarn)--disable-pnp disable the PlugnPlay installation--emoji [bool] enable emoji in output (default: false)--enable-pnp, --pnp enable the PlugnPlay installation--flat only allow one version of a package--focus Focus on a single workspace by installing remote copies of its sibling workspaces.--force install and build packages even if they were built before, overwrite lockfile--frozen-lockfile dont generate a lockfile and fail if an update is needed--global-folder path specify a custom folder to store global packages--har save HAR output of network traffic--https-proxy host--ignore-engines ignore engines check--ignore-optional ignore optional dependencies--ignore-platform ignore platform checks--ignore-scripts dont run lifecycle scripts--json format Yarn log messages as lines of JSON (see jsonlines.org)--link-duplicates create hardlinks to the repeated modules in node_modules--link-folder path specify a custom folder to store global links--modules-folder path rather than installing modules into the node_modules folder relative to the cwd, output them here--mutex type[:specifier] use a mutex to ensure only one yarn instance is executing--network-concurrency number maximum number of concurrent network requests--network-timeout milliseconds TCP timeout for network requests--no-bin-links dont generate bin links when setting up packages--no-default-rc prevent Yarn from automatically detecting yarnrc and npmrc files--no-lockfile dont read or generate a lockfile--non-interactive do not show interactive prompts--no-node-version-check do not warn when using a potentially unsupported Node version--no-progress disable progress bar--offline trigger an error if any required dependencies are not available in local cache--otp otpcode one-time password for two factor authentication--prefer-offline use network only if dependencies are not available in local cache--preferred-cache-folder path specify a custom folder to store the yarn cache if possible--prod, --production [prod]--proxy host--pure-lockfile dont generate a lockfile--registry url override configuration registry-s, --silent skip Yarn console logs, other types of logs (script output) will be printed--scripts-prepend-node-path [bool] prepend the node executable dir to the PATH in scripts--skip-integrity-check run install without checking if node_modules is installed--strict-semver--update-checksums update package checksums from current repository--use-yarnrc path specifies a yarnrc file that Yarn should use (.yarnrc only, not .npmrc) (default: )-v, --version output the version number--verbose output verbose messages on internal operations-h, --help output usage informationCommands:- access- add- audit- autoclean- bin- cache- check- config- create- exec- generate-lock-entry / generateLockEntry- global- help- import- info- init- install- licenses- link- list- login- logout- node- outdated- owner- pack- policies- publish- remove- run- tag- team- unlink- unplug- upgrade- upgrade-interactive / upgradeInteractive- version- versions- why- workspace- workspacesRun yarn help COMMAND for more information on specific commands.Visit https://yarnpkg.com/en/docs/cli/ to learn more about Yarn.通过帮助信息一般可以了解该工具有哪些命令哪些选项了。 最常用命令 1、初始化一个新项目 yarn init一般会生成一个package.json文件默认情况下文件如下 {name: yarn,version: 1.0.0,main: index.js,license: MIT }yarn使用package.json文件来标识每个包其含义看配置文档。 2、安装所有依赖项 yarn yarn install会多出来一个node_modules目录用来存在后期安装的依赖文件和yarn.lock文件。yarn.lock文件是用来固化依赖提交代码时也应该一同提交。 3、添加依赖项 一次性也可以添加多个依赖项 yarn add [package] yarn add [package1] [package2] [package3] yarn add [package][version] yarn add [package][tag]不指定版本一般安装的是最新版本以安装jquery模块为例 安装好以后node_modules和package.json都有体现 可以去https://www.npmjs.com/搜索查询jquery查看可用历史版本 注意一个项目相同模块只会存在一个。例如jquery3.7.1和jquery3.5.0在一个项目不可能同时存在。 添加不同类型依赖项 dependencies普通依赖项运行项目时需要用到的依赖。不管是在开发还是生产都需要用得到比如jquery # 普通依赖项用--save yarn add jquery --savedevDependencies开发依赖项。开发时使用到的依赖生产不需要如BabelES6转ES5 # 开发依赖项--save-dev yarn add jquery --save-devpeerDependencies对等依赖发布依赖包时使用。 optionalDependencies可选依赖。可选的依赖包如果此包安装失败Yarn依然会提示安装进程成功。 bundledDependencies要打包的依赖/捆绑依赖。 4、删除依赖项 yarn remove [package] 小结 这个博客主要记录测试添加、更新、删除依赖项依赖项的操作在项目中的变化和体现yarn包管理器其它操作同npm。
http://www.pierceye.com/news/325555/

相关文章:

  • 做资讯网站要什么手续科技设计公司网站模板下载
  • 西安互联网网站建设湘潭网站建设设计
  • 微网站开发方案模板前程无忧招聘网下载app官网
  • 网站推广方式大全如何写软文赚钱
  • 同城同镇网站建设做幼儿网站的目标
  • 上饶网站建设兼职辽宁沈阳做网站
  • 阳江企业网站好的外包公司
  • 深圳做分销商城网站我有域名跟空间能教我做网站吗
  • 网站子目录做推送用什么网站
  • 网站手机优化网站上传空间的ip地址
  • 做网站增加流量自助微信网站设计
  • 网站推广的6个方法是什么软件开发合同模板范本1
  • 营销网站手机站wordpress的主题目录
  • 达州建设企业网站重视网站商务通
  • 淘宝网站怎么做视频58做二手车网站应该怎么推广
  • 自动翻译网站软件cf刷枪网站怎么做的
  • 示范校建设验收网站网站对话窗口怎么做
  • phpcms 移动网站模板怎么做个人网页
  • 南宁手机建站公司新加坡网站后缀
  • 如何在建设部网站查询获奖情况如何申请电商网站
  • jsp网站访问万维网网站幻灯
  • 南通住房和城乡建设部网站首页安徽公司网站建设
  • 建筑论坛网站修改WordPress文章发布页面
  • 网站代备案系统seo优化服务是什么意思
  • 专门做选择题的网站一个网站seo做哪些工作
  • wordpress 多站点 拷贝中国建设银行春招网站
  • 门户营销型网站wordpress代码执行
  • 保山市建设厅网站做建筑机械网站那个网站好
  • 广告位网站建设国际人才网中山招聘网
  • 南昌市城市建设档案馆网站一个网站做无限关键词