Skip to content

NodeBB - Update auf v1.18.4

NodeBB
1 1 200
  • Heute auf die neue Version aktualisiert, so wie immer

    git fetch
    git reset --hard origin/v1.18.x    
    ./nodebb upgrade
    ./nodebb start
    

    Bei

    ./nodebb upgrade
    

    kommt dieser Fehler

    nodebb@webserver:~/nodebb$ ./nodebb upgrade
    
    Updating NodeBB...
    
    1. Updating package.json file with defaults...  OK
    
    2. Bringing base dependencies up to date...  started
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
    npm WARN textcomplete.contenteditable@0.1.1 requires a peer of textcomplete@^0.14.2 but none is installed. You must install peer dependencies yourself.
    
    npm ERR! code EEXIST
    npm ERR! path /user/nodebb/node_modules/.bin/nanoid
    npm ERR! Refusing to delete /user/nodebb/node_modules/.bin/nanoid: is outside /user/nodebb/node_modules/nanoid and not a link
    npm ERR! File exists: /user/nodebb/node_modules/.bin/nanoid
    npm ERR! Remove the existing file and try again, or run npm
    npm ERR! with --force to overwrite files recklessly.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /user/.npm/_logs/2021-10-09T15_39_29_779Z-debug.log
    Error installing dependencies!
    message: Command failed: npm install --production
    stdout: null
    stderr: null
    Error occurred during upgrade: Error: Command failed: npm install --production
        at checkExecSyncError (child_process.js:790:11)
        at Object.execSync (child_process.js:863:15)
        at Object.installAll (/user/nodebb/src/cli/package-install.js:73:9)
        at Object.handler (/user/nodebb/src/cli/upgrade.js:21:19)
        at runSteps (/user/nodebb/src/cli/upgrade.js:54:16)
        at processTicksAndRejections (internal/process/task_queues.js:95:5)
        at async Object.runUpgrade [as upgrade] (/user/nodebb/src/cli/upgrade.js:84:3)
    (node:36405) UnhandledPromiseRejectionWarning: Error: Command failed: npm install --production
        at checkExecSyncError (child_process.js:790:11)
        at Object.execSync (child_process.js:863:15)
        at Object.installAll (/user/nodebb/src/cli/package-install.js:73:9)
        at Object.handler (/user/nodebb/src/cli/upgrade.js:21:19)
        at runSteps (/user/nodebb/src/cli/upgrade.js:54:16)
        at processTicksAndRejections (internal/process/task_queues.js:95:5)
        at async Object.runUpgrade [as upgrade] (/user/nodebb/src/cli/upgrade.js:84:3)
    (Use `node --trace-warnings ...` to show where the warning was created)
    (node:36405) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
    (node:36405) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
    

    Ok, da bekommt man dann immer feuchte Hände. Ist aber mit Proxmox nicht so schlimm, ich mache vorher immer Snapshots.

    Ok, aufmerksam lesen, hilft hier meistens.

    npm ERR! File exists: /user/nodebb/node_modules/.bin/nanoid
    npm ERR! Remove the existing file and try again, or run npm
    npm ERR! with --force to overwrite files recklessly.
    

    Ich lese, das man zwei Möglichkeiten hat.

    • Wir löschen das File von Hand
    • Wir nutzen die Option --force

    Ich habe die erste Option getestet. Zur Sicherung verschiebe ich das File.

    mv /user/nodebb/node_modules/.bin/nanoid /home/user
    

    Danach wieder

    ./nodebb upgrade
    

    Diesmal funktioniert es einwandfrei.

  • We made it into TechCrunch!

    Uncategorized techcrunch media nodebb
    1
    1 Stimmen
    1 Beiträge
    34 Aufrufe
    Niemand hat geantwortet
  • NodeBB - v3.3.0

    NodeBB nodebb linux
    1
    0 Stimmen
    1 Beiträge
    154 Aufrufe
    Niemand hat geantwortet
  • NodeBB - Upgrade auf Debian Bookworm 12

    NodeBB nodeb nodejs
    1
    0 Stimmen
    1 Beiträge
    311 Aufrufe
    Niemand hat geantwortet
  • Nodebb - iframely

    NodeBB nodebb iframely
    5
    1
    0 Stimmen
    5 Beiträge
    406 Aufrufe
    FrankMF
    In der Anleitung von iframely werden zwei Tools angesprochen, um den Dienst dauerhaft am Laufen zu halten. forever pm2 Ich habe beide ausprobiert, pm2 recht intensiv. Bin aber zu der Überzeugung gekommen, das es für mich nicht sinnvoll ist eines dieser Tools zu nutzen. Meine NodeJS Fähigkeiten sind sehr überschaubar, so das ich mich mit keinem der Tools richtig wohl gefühlt habe. Also machen wir es so, wie es in Debian 11 eingebaut ist - mit systemd Hier das File wie ich den Dienst starte. [Unit] Description=Iframely Documentation=https://iframely.com/docs/host After=system.slice multi-user.target [Service] Type=simple User=<USER> StandardOutput=syslog StandardError=syslog SyslogIdentifier=iframely WorkingDirectory=/home/<USER>/iframely PIDFile=/home/<USER>/iframely/pidfile ExecStart=/usr/bin/node cluster Restart=always [Install] WantedBy=multi-user.target
  • NodeBB - Update v2.1.1

    NodeBB nodebb
    1
    0 Stimmen
    1 Beiträge
    120 Aufrufe
    Niemand hat geantwortet
  • NodeBB - Upgrade v2.1.0

    NodeBB nodebb
    2
    1
    0 Stimmen
    2 Beiträge
    174 Aufrufe
    FrankMF
    Und so, wenn man beide 2FA Möglichkeiten aktiviert hat. [image: 1654683786232-552a3e23-bae3-4cfd-9c2e-26026ab63138-grafik.png]
  • NodeBB - Wichtige Befehle für die Konsole

    Angeheftet NodeBB nodebb
    1
    0 Stimmen
    1 Beiträge
    143 Aufrufe
    Niemand hat geantwortet
  • NodeBB auf dem Raspberry3 B+ installieren

    RaspberryPi nodebb raspberrypi linux
    1
    0 Stimmen
    1 Beiträge
    885 Aufrufe
    Niemand hat geantwortet