I’m following the guide to create a block (Scaffold your first block | Learn WordPress).
I’ve done it previously with no issues but now I’m getting
Error: Command failed with exit code 1: npm run format
'wp-scripts' is not recognized as an internal or external command,
operable program or batch file.
This is in the site shell, and I’m a front end dev so I’m a bit out of my depth
My impression was that this was a sort of VM with all this stuff ready to go?
- create new site using local
- start site and open site shell
- cd to plugins folder
npx @wordpress/create-block block-name
Operating System (OS) and OS version:
Attach your Local Logs here (Help Doc - Retrieving Local’s Log)
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.