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

网站建设报价兴田德润在哪里什么软件可以推广

网站建设报价兴田德润在哪里,什么软件可以推广,国外购买域名网站,微信小程序代理商加盟多少钱安装 Node Linux中安装Node 安装verdaccio npm i -g verdaccio安装完成 输入verdaccio,出现下面信息代表安装成功,同时输入verdaccio后verdaccio已经处于运行状态,当然这种启动时暂时的,我们需要通过pm2让verdaccio服务常驻 ygiZ2zec61wsg…

安装 Node

Linux中安装Node

安装verdaccio

npm i -g verdaccio

安装完成 输入verdaccio,出现下面信息代表安装成功,同时输入verdaccio后verdaccio已经处于运行状态,当然这种启动时暂时的,我们需要通过pm2让verdaccio服务常驻

   yg@iZ2zec61wsgbo9t9i346jbZ:~$ verdacciowarn --- config file  - /home/yg/.config/verdaccio/config.yamlwarn --- Plugin successfully loaded: htpasswdwarn --- Plugin successfully loaded: auditwarn --- http address - http://localhost:4873/ - verdaccio/3.10.1

配置config.yaml

1、vim /home/yg/.config/verdaccio/config.yaml 进入编辑配置文件# This is the default config file. It allows all users to do anything,
# so don't use it on production systems.
#
# Look here for more config file examples:
# https://github.com/verdaccio/verdaccio/tree/master/conf
## path to a directory with all packages
# 所有包缓存的目录
storage: ./storage
# path to a directory with plugins to include
# 插件目录
plugins: ./plugins# 开启web服务,能够通过web访问
web:# WebUI is enabled as default, if you want disable it, just uncomment this line#enable: falsetitle: Verdaccio# 验证信息
auth:htpasswd:# 用户信息存储目录file: ./htpasswd# Maximum amount of users allowed to register, defaults to "+inf".# You can set this to -1 to disable registration.#max_users: 1000# a list of other known repositories we can talk to
# 公有仓库配置
uplinks:npmjs:url: https://registry.npmjs.org/packages:'@*/*':# scoped packagesaccess: $allpublish: $authenticated# 代理,表示没有的仓库去这个npmjs里边去找# npmjs 又指向 https://registry.npmjs.org/ ,就是上面的 uplinks 配置proxy: npmjs'**':# allow all users (including non-authenticated users) to read and# publish all packages## you can specify usernames/groupnames (depending on your auth plugin)# and three keywords: "$all", "$anonymous", "$authenticated"# 三种身份所有人,匿名用户,认证(登录用户)# 是否可访问所需的权限access: $all# allow all known users to publish packages# (anyone can register by default, remember?)# 发布package的权限publish: $authenticated# if package is not available locally, proxy requests to 'npmjs' registry# 如果package不存在,就向代理的上游服务器发起请求proxy: npmjs# To use `npm audit` uncomment the following section
middlewares:audit:enabled: true# 监听端口,重点,不配置这个只能本机可以访问
listen: 0.0.0.0:4873# log settings
logs:- {type: stdout, format: pretty, level: http}#- {type: file, path: verdaccio.log, level: info}

安装 pm2

npm i pm2 -g

启动

pm2 start verdaccio  

就可以通过http://xxx(ip地址)去访问了

在这里插入图片描述

设置 npm 服务指向本地

npm config set registry http://localhost:4873

注册用户

# 注册用户 在本地注册一个用户然后指向我们的地址然后我们就可以发布包了
npm adduser --registry http://xxx:4873
Username: xxx
Password: xxx
Password:  xxx
Email: (this IS public) xxx
Logged in as yg-ui on http://xxx/ (你的ip地址)
这时候我们就注册一个用户,我们可以用这个用户名和密码去登录去上图窗口去登录了

登录

npm login 	# 用刚刚注册的用户名密码进行登录
npm whoami	# 查看当前登录的账号

发包

mkdir npm-publish-test	# 包文件夹
cd npm-publish-test
npm init				# npm初始化
npm publish	

删除 指定版本或包

$ npm unpublish [<pkg>][@<version>] --force

下面列一下几种使用场景

  • $ npm unpublish dzmtest@1.0.1 --force
    直接强制删除指定包的指定版本,不需要 cd 进入包文件夹内,随处可以执行。

  • $ npm unpublish dzmtest --force
    直接强制删除指定包,不需要 cd 进入包文件夹内,随处可以执行。

http://www.hrbkazy.com/news/29359.html

相关文章:

  • 蚌埠网站制作公司哪家好国外seo网站
  • 信用湘潭网站自助建站系统平台
  • 做网站程序的步骤网络seo外包
  • 淘宝开店注册流程河北网站优化公司
  • 魔域网页游戏官网上海专业优化排名工具
  • 自己怎么做外贸英文网站宣传广告怎么做吸引人
  • 网站备案接入商是什么百度云盘登录电脑版
  • 网站建设的重要宁波网站建设方案推广
  • 用网站做平台有哪些链接购买平台
  • 东阿网站建设老客外链
  • 信金在线制作网站百度搜索引擎广告投放
  • 北京市建设投标网站如何让百度快速收录网站文章
  • 西安企业网站建设哪家好35个成功的市场营销策划案例
  • bing收录提交引擎优化是什么意思
  • 小语种网站建设及推广免费下载优化大师
  • 新乡专业网站建设公司今晚日本比分预测
  • 聂教练做0网站2022最火营销方案
  • 新工商名录企业应用平台seo网站优化工具大全
  • 有什么网站可以做设计兼职免费发布信息的网站平台
  • 小精灵儿童网站免费做踢一站式网络推广服务
  • 重庆互动网站建设网站优化 秦皇岛
  • 西安做网站的公司维护网站seo优化课程
  • 网站广告位投放百度贴吧官网入口
  • 为什么要做网站推广wifi优化大师下载
  • 网站内链接怎么做做网络推广一个月的收入
  • 有哪些网络营销公司南昌seo
  • 学做投资网站好企业网站定制开发
  • 做网站一定要用cms吗常州网站推广
  • 做搜狗网站优下载百度app下载
  • 做展览的网站百度热榜