WordPress CLI Install Issue for WordPress


Topic: WordPress CLI Install Issue for WordPress

goodfellastech pro premium priority asked 6 months ago

Expected behavior

Running "mdb wordpress init" in the terminal after installing the node should successfully install WordPress MDB.

Actual behavior

Zip error that doesn't download packaged theme.

Resources (screenshots, code snippets etc.) Choose project to initialize wp-essential-blog-ecomm

[= ] 0.0 snode:events:497 throw er; // Unhandled 'error' event ^

Error: Zip version 78.8 is not supported at Immediate._onImmediate (/usr/local/lib/node_modules/mdb-cli/node_modules/unzip-stream/lib/unzip-stream.js:355:32) at process.processImmediate (node:internal/timers:478:21) Emitted 'error' event on Extract instance at: at emitErrorNT (node:internal/streams/destroy:169:8) at emitErrorCloseNT (node:internal/streams/destroy:128:3) at processTicksAndRejections (node:internal/process/task_queues:82:21) at runNextTicks (node:internal/process/task_queues:64:3) at process.processImmediate (node:internal/timers:449:9)

What would fix this error? I am currently on PHP 8.1.29 and WordPress 6.5.5 for local station and latest version of NodeJS for terminal and NPM


Grzegorz Bujański staff answered 5 months ago

Which version of MDB CLI are you using? Use the mdb version command to check this. If it is an older version than 4.3.3 use the npm i -g mdb-cli command to update the MDB CLI and try again. If you still have this error or are using the latest version, let me know.


goodfellastech pro premium priority commented 5 months ago

Ran the "npm i -g mdb-cli" and it was install successfully.

mdb version returns 4.3.3

I have not done any other customizing of the install. Is there a command to update the version?

I am running vs code on a MacBook pro and using "Sudo" to give install full admin access.


Kamila Pieńkowska staff commented 5 months ago

ZIP file should be fixed now. Please try again.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 7.3.2
  • Device: mac OSX
  • Browser: chrome
  • OS: Ventura
  • Provided sample code: No
  • Provided link: No