Skip to main content

Fifi sori ẹrọ Bi Iṣẹ Windows kan

Loosely based upon the instructions found here. I crafted the following and it provided me with a fully working verdaccio service installation:

  1. Ṣẹda ọna fun verdaccio
    • mkdir c:\verdaccio
    • cd c:\verdaccio
  2. Fi verdaccio sori ẹrọ ni ibilẹ (Mo salaba pade awọn iṣoro npm pẹlu awọn fifisori ti agbaye)
    • npm install verdaccio
  3. Ṣẹda faili config.yaml rẹ ni aaye yii (c:\verdaccio\config.yaml)
  4. Iṣeto Iṣẹ Windows

Lilo NSSM

ỌNA MIRAN: (Akopọ WinSW ti sọnu nigbati mo gbiyanju lati gba lati ayelujara)

  • Gba NSSM ki o si fa jade

  • Se afikun ọna ti o ni nssm.exe si PATH

  • Ṣi aṣẹ isakoso kan

  • Run nssm install verdaccio At a minimum you must fill in the Application tab Path, Startup directory and Arguments fields. Assuming an install with node in the system path and a location of c:\verdaccio the below values will work:

    • Path: node

    • Startup directory: c:\verdaccio

    • Awọn ariyanjiyan: c:\verdaccio\node_modules\verdaccio\build\lib\cli.js -c c:\verdaccio\config.yaml

      You can adjust other service settings under other tabs as desired. When you are done, click Install service button

  • Start the service sc start verdaccio

Using WinSW

  • As of 2015-10-27, WinSW is no longer available at the below location. Please follow the Using NSSM instructions above.
  • Gba lati ayelujara WinSW
    • Gbe awọn iṣẹ ṣiṣe naa (fun apẹẹrẹ winsw-1.9-bin.exe) sinu foda yii (c:\verdaccio) ki o si pa lorukọ da si verdaccio-winsw.exe
  • Create a configuration file in c:\verdaccio, named verdaccio-winsw.xml with the following configuration xml verdaccio verdaccio verdaccio node c:\verdaccio\node_modules\verdaccio\src\lib\cli.js -c c:\verdaccio\config.yaml roll c:\verdaccio.
  • Install your service
    • cd c:\verdaccio
    • verdaccio-winsw.exe install
  • Bẹrẹ iṣẹ rẹ
    • verdaccio-winsw.exe start

Diẹ lara awọn iṣeto ti o wa loke jẹ verbose ju bi mo ti se reti lọ, o dabi pe 'workingdirectory' ti ko bikita, ṣugbọn yatọ si eyi, eyi ṣiṣẹ fun mi o si fayegba verdaccio instance mi lati si duro sinsin laarin atunbẹrẹ ti olupese naa, ati sise atunbẹrẹ ara rẹ ti o ba lọ jẹpe ijamba kankan ba waye si ilana verdaccio naa.

Repositories