美文网首页程序员
Sinopia安装部署

Sinopia安装部署

作者: 夹胡碰 | 来源:发表于2020-08-04 13:48 被阅读0次

1.环境准备

Centos7
安装nodejs

以下是百度网盘下载资源 提取码 6666
node-v12.18.3-linux-x64.tar.xz

  • 解压
tar -xvf node-v12.18.3-linux-x64.tar.xz -C /usr/local/
  • 配置环境变量
vim /etc/profile
export NODE_HOME=/usr/local/node-v12.18.3-linux-x64
export PATH=$PATH:$NODE_HOME/bin
source /etc/profile
  • 查看版本信息 出现版本号表示安装成功
[root@bogon download]# npm -version
6.14.6
  • 设置淘宝国内镜像
npm config set registry="https://registry.npm.taobao.org"

2. 安装Sinopia

  • 安装
npm install sinopia -g --no-optional --no-shrinkwrap
[root@bogon download]# npm install sinopia --no-optional --no-shrinkwrap
npm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN saveError ENOENT: no such file or directory, open '/opt/download/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/opt/download/package.json'
npm WARN download No description
npm WARN download No repository field.
npm WARN download No README data
npm WARN download No license field.

+ sinopia@1.4.0
added 170 packages from 345 contributors in 48.315s

2 packages are looking for funding
  run `npm fund` for details
  • 启动
sinopia
[root@bogon ~]# sinopia 
Sinopia doesn't need superuser privileges. Don't run it under root.
 warn  --- config file  - /root/.config/sinopia/config.yaml
 warn  --- http address - http://192.168.227.129:4873/
  • 修改配置文件
vim ~/.config/sinopia/config.yaml
  • 最后一行添加 listen: 192.168.227.129:4873 保证共享访问
# a list of other known repositories we can talk to
uplinks:
  npmjs:
    url: https://registry.npmjs.org/

packages:
  '@*/*':
    # scoped packages
    access: $all
    publish: $authenticated

  '*':
    # 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?)
    publish: $authenticated

    # if package is not available locally, proxy requests to 'npmjs' registry
    proxy: npmjs

# log settings
logs:
  - {type: stdout, format: pretty, level: http}
  #- {type: file, path: sinopia.log, level: info}
# 最后一行添加环境
listen: 192.168.227.129:4873
  • UI界面


    image.png

相关文章

  • Sinopia安装部署

    1.环境准备 Centos7 安装nodejs 以下是百度网盘下载资源 提取码 6666node-v12.18.3...

  • 私有组件库

    全局安装sinopia npm install sinopia -g 全局安装pm2 npm install pm...

  • 使用sinopia搭建npm私有仓

    安装sinopia npm install -g sinopia 修改配置文件 cd ${当前用户}/.confi...

  • sinopia的部署和使用

    随着时间的推移,前端的工程日益庞大,越来越复杂的依赖包需要包管理器来维护。相比搭建没有优势bower仓储,更好的方...

  • NPM私有仓库Sinopia搭建及使用

    Sinopia搭建 1.安装NodeJS及NPM 在Node.js中文网选择对应的系统进行下载并安装,安装完成后即...

  • 搭建npm私有库工具

    sinopia (已不在维护) verdaccio(从sinopia frok代码继续维护) 网址:https:/...

  • 使用sinopia搭建私有库

    使用sinopia的优势 配置简单 不需要数据库,sinopia内置一个数据库了 开启即用 当源为sinopia时...

  • npm和nvm和nrm

    npmnode package manage私有化npm包,sinopia私有化安装,npm私有化包管理等组件化开...

  • centos安装jdk、MQ、redis、dubbo组件等

    【安装jdk】 【部署redis】 【部署nginx】 【安装activeMQ】 【部署zookeeper】 【部...

  • 搭建npm私服

    1.安装npm私服服务github地址 2.启动sinopia 你会看到下面两行提示: 访问http://loca...

网友评论

    本文标题:Sinopia安装部署

    本文链接:https://www.haomeiwen.com/subject/bgfqrktx.html