WPdev11
WPdev11

Reputation: 111

Why isn't @wordpress/create-block working?

I am trying to create a gutenberg block scaffolding but this command is not working for some reason. I am running the below command and receiving the below message. How do I fix this? Node and npx are installed. I am confused as I do not have a period in my command.

npx @wordpress/create-block gcb-test-block

Message the terminal shows me:

Unexpected token .

Upvotes: 0

Views: 483

Answers (1)

Faheem channa
Faheem channa

Reputation: 1

I guess you have not set wordpress development enviroment. make sure latest version of npm, nodeJs and run following command.

npx -g install @wordpress/env

Upvotes: 0

Related Questions