What issue or error are you experiencing?
new clean WP install and then use Shell to create a custom block in PLUGINS using command “npx @wordpress/create-block” command will fail out of the box
Posting the solution because it is difficult to find/track down - plus previous topic posted above was never resolved (or allowed to add solution after closed)
SOLUTION:
export NODE_ENV=development
the solution was to run export NODE_ENV=development
first. If the NODE_ENV
isn’t development
, the npm install
command doesn’t install the development dependency @wordpress/scripts
. cc [@talldan]
System Details
- Local Version:
Version 9.0.1+6673 - Operating System (OS) and OS version:
Mac OS 14.4.1 (23E224)