rlidwka / sinopia

Private npm repository server
5.5k stars 655 forks source link

help me. #432

Open robertolabarca opened 7 years ago

robertolabarca commented 7 years ago

=============================================================================================== config.yaml

===============================================================================================

storage: ./storage

auth:
  htpasswd:
    file: ./htpasswd

uplinks:
  npmjs:
    url: https://nexus-3/repository/npm-mirror

packages:
  '@*/*':

    access: $all
    publish: $all

  '*':
      access: $all
      publish: $all

      proxy: npmjs

logs:
  - {type: stdout, format: pretty, level: http}

================================================================================ npm config

cache-min = 99999999
registry = "http://127.0.0.1:4873/"
strict-ssl = false

============================================================================== NOW

mkdir temp
cd tmp
npm init
npm install jquery -g

THEN D:\npm\npmlazy>sinopia warn --- config file - C:\Users\roberto\AppData\Roaming\sinopia\config.yaml warn --- http address - http://localhost:4873/ http --> ERR, req: 'GET https://nexus-3/repository/npm-mirror/jquery', error: self signed certificate http <-- 404, user: undefined, req: 'GET /jquery', error: no such package available

lengziyu commented 7 years ago

I see your user: undefined,You can try :

$ npm set registry http://127.0.0.1:4873
$ npm adduser --registry http://127.0.0.1:4873