plugin+block erstellen mit npm | ProjectDMC.org Deutsch

[ad_1]

Ich habe nach dem Buch von Florian Simeth gearbeitet. Jetzt möchte ich einen Block erstellen (Kap. 9.2), aber npx funktioniert nicht wie erwartet:

sudo npx @wordpress/create-block my-weather-block
Der schlägt bei mir fehl mit
„npx: Installierte 126 in 22.478s
Unexpected token .“

Der lokale Server Apache läuft hier auf Ubuntu.
npm -version 6.14.4
nodejs –version v10.19.0
npx –version 10.2.2

Ein Ordner im plugin-Verzeichnis wird nicht erstellt.

Woran könnte das liegen?

Die Seite, für die ich Hilfe brauche: [Anmelden, um den Link zu sehen]

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer