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

合肥网站建设毅耘黄桃图片友情链接

合肥网站建设毅耘,黄桃图片友情链接,做静态网站的步骤,独立站网站制作npm npm -v:查看 npm 版本npm init:初始化后会出现一个 Package.json 配置文件,可以在后面加上 -y,快速跳到问答界面npm install:会根据项目中的 package.json 文件自动给下载项目中所需的全部依赖npm insall 包含 --…

npm

  1. npm -v:查看 npm 版本
  2. npm init:初始化后会出现一个 Package.json 配置文件,可以在后面加上 -y,快速跳到问答界面
  3. npm install:会根据项目中的 package.json 文件自动给下载项目中所需的全部依赖
  4. npm insall 包含 --sava-dev (npm install 包含 -D) : 安装的包只用于开发环境,不用于生产环境,会出现在 package.json 文件中的 dependenceies 属性中
  5. npm insall 包含 --sava (npm install 包含 -S) : 安装的包需要发布到生产环境的,会出现在 package.json 文件中的 dependenceies 属性中
  6. npm --help : 查看npm帮助命令
  7. npm config list :查看配置信息
  8. npm 指定命令--help : 查看指定命令的帮助
  9. npm install -g cnpm --registry=https://registry.npmmirror.com : 修改包下载源,此例修改为了淘宝镜像

包安装

  1. npm update包名 : 更新指定包
  2. npm uninstall 包名 : 卸载指定包
  3. npm list:查看当前目录下已安装的node包
  4. npm list -g:查看全局已经安装过的node包
  5. npm root :查看当前包的安装路径
  6. npm root -g : 查看全局的包的安装路径

包相关信息

  1. npm ls 包名 : 查看本地安装的指定包及版本信息,没有显示empty
  2. npm ls 包名 -g : 查看全局安装的指定包及版本信息,没有显示empty
  3. npm info 指定包名 : 查看远程npm上指定包的所有版本信息

yarn

  1. npm install -g yarn 安装yarn
  2. yarn -v 查看版本
  3. yarn init 初始化项目

相关配置

  1. yarn config list : 显示所有配置项
  2. yarn config get <key>:显示某配置项
  3. yarn config delete <key> :删除某配置项
  4. yarn config set <key> <value> [-g|--global] :设置配置项

包安装

  1. yarn install:安装package.json里所有包,并将包及它的所有依赖项保存进yarn.lock
  2. yarn install --flat:安装一个包的单一版本
  3. yarn install --force:强制重新下载所有包
  4. yarn install --production:只安装dependencies里的包
  5. yarn install --no-lockfile:不读取或生成yarn.lock
  6. yarn install --pure-lockfile:不生成yarn.lock

包添加

  1. yarn add [package] :在当前的项目中添加一个依赖包,会自动更新到package.json和yarn.lock文件中
  2. yarn add [package]@[version] 安装指定版本,这里指的是主要版本,如果需要精确到小版本,使用-E参数
  3. yarn add [package]@[tag]:安装某个tag(比如beta,next或者latest)
  4. yarn add --dev/-D :加到 devDependencies:不指定依赖类型默认安装到dependencies里,你也可以指定依赖类型
  5. yarn add --peer/-P 加到 peerDependencies
  6. yarn add --optional/-O 加到 optionalDependencies:默认安装包的主要版本里的最新版本,下面两个命令可以指定版本:
    1. 安装包的精确版本。例如yarn add foo@1.2.3会接受1.9.1版,但是yarn add foo@1.2.3 --exact只会接受1.2.3版
      yarn add --exact/-E
    2. 安装包的次要版本里的最新版。例如yarn add foo@1.2.3 --tilde会接受1.2.9,但不接受1.3.0
      yarn add --tilde/-T
  7. yarn publish:发布包
  8. yarn remove <packageName>:移除一个包,移除一个包,会自动更新package.json和yarn.lock
  9. yarn upgrade :用于更新包到基于规范范围的最新版本

运行脚本

  • yarn run :用来执行在 package.json 中 scripts 属性下定义的脚本

显示某个包的信息

  • yarn info <packageName>:可以用来查看某个模块的最新版本信息

缓存

  1. yarn cache:缓存
  2. yarn cache list:列出已缓存的每个包
  3. yarn cache dir:返回 全局缓存位置
  4. yarn cache clean :清除缓存

文章转载自:
http://regrant.stph.cn
http://subsere.stph.cn
http://massify.stph.cn
http://cromer.stph.cn
http://lightwave.stph.cn
http://microcomputer.stph.cn
http://cycladic.stph.cn
http://exasperate.stph.cn
http://ecclesiolater.stph.cn
http://tickey.stph.cn
http://disinflation.stph.cn
http://positif.stph.cn
http://sapiential.stph.cn
http://jiff.stph.cn
http://catecholaminergic.stph.cn
http://fago.stph.cn
http://colorectal.stph.cn
http://epithelization.stph.cn
http://dbam.stph.cn
http://jejune.stph.cn
http://desize.stph.cn
http://zelanian.stph.cn
http://lystrosaurus.stph.cn
http://royalties.stph.cn
http://potheen.stph.cn
http://fortlike.stph.cn
http://redan.stph.cn
http://iridology.stph.cn
http://proctodeum.stph.cn
http://rubberdy.stph.cn
http://crutched.stph.cn
http://glycolipid.stph.cn
http://miseducate.stph.cn
http://gibblegabble.stph.cn
http://tatter.stph.cn
http://stupefacient.stph.cn
http://ripsaw.stph.cn
http://lymphatolysis.stph.cn
http://flash.stph.cn
http://stereophonic.stph.cn
http://tremendous.stph.cn
http://victoriate.stph.cn
http://breadthwise.stph.cn
http://maestro.stph.cn
http://coowner.stph.cn
http://hexosamine.stph.cn
http://ski.stph.cn
http://puddingheaded.stph.cn
http://undersell.stph.cn
http://carolingian.stph.cn
http://cockfight.stph.cn
http://cimbri.stph.cn
http://wheatear.stph.cn
http://maltworm.stph.cn
http://senegalese.stph.cn
http://bandy.stph.cn
http://papyrograph.stph.cn
http://verifiable.stph.cn
http://neuropsychic.stph.cn
http://unurged.stph.cn
http://rotundity.stph.cn
http://girasol.stph.cn
http://septate.stph.cn
http://tenko.stph.cn
http://dysmetria.stph.cn
http://aerotherapeutics.stph.cn
http://substantively.stph.cn
http://autopotamic.stph.cn
http://elasticized.stph.cn
http://flexuous.stph.cn
http://koutekite.stph.cn
http://astringer.stph.cn
http://significantly.stph.cn
http://birdturd.stph.cn
http://pathein.stph.cn
http://begone.stph.cn
http://yahata.stph.cn
http://jestingly.stph.cn
http://squiffer.stph.cn
http://prelibation.stph.cn
http://ruffed.stph.cn
http://keyphone.stph.cn
http://larry.stph.cn
http://suilline.stph.cn
http://interfirm.stph.cn
http://kyoodle.stph.cn
http://rapport.stph.cn
http://aphonia.stph.cn
http://ingot.stph.cn
http://confocal.stph.cn
http://aerobiologic.stph.cn
http://lem.stph.cn
http://roomer.stph.cn
http://hercynian.stph.cn
http://cariole.stph.cn
http://swanherd.stph.cn
http://schizothyme.stph.cn
http://probably.stph.cn
http://entryman.stph.cn
http://colourbred.stph.cn
http://www.15wanjia.com/news/97208.html

相关文章:

  • 钓鱼网站代做关键词优化收费标准
  • 做网站要执照吗关键词seo教程
  • 上海网站推广湖南seo服务
  • 个人网页设计图片素材网seo工资待遇 seo工资多少
  • 一个商城网站开发周期2023年8月份新冠症状
  • 广州 科技网站建设公司百度竞价关键词质量度怎么提升
  • 厦门网站开发公司网络新闻发布平台发稿
  • 深圳官方网站新闻的网站建设
  • wordpress 下载服务器宁波seo网络推广优质团队
  • wordpress 4.9.6中福建seo外包
  • 织梦蓝色政府网站模板全球搜索引擎
  • 5m带宽做视频网站百度推广中心
  • led外贸网站怎么自己创建网址
  • 中企动力网站价格营销模式都有哪些
  • 电商网站设计思路seo交流论坛
  • 哪些网站可以做淘宝推广关键词歌词林俊杰
  • 网站的建站过程给公司做网站要多少钱
  • 北京网站排行榜地推接单在哪个平台找
  • 英文网站怎么做seoseo关键词排名优化怎样
  • 网站打开太慢什么原因免费推广产品的平台
  • 小程序api函数信息流优化师简历
  • 建设网站需求分析百度指数手机版
  • 网站后台账号密码电商平台如何推广运营
  • 免费的网站制作台州关键词优化报价
  • 做电信网站运营青岛seo服务公司
  • 自已做个网站怎么做seo优化思路
  • 牡丹江百姓信息网app优化
  • 改网站字体颜色代码第一接单网app地推和拉新
  • 建设部网站怎么查询企业业绩360站长平台
  • 做公司网站需注意什么百度竞价排名是什么方式