I’m trying to go through the Custom Gutenberg Block Development With the WordPress Block Editor
course on Kinsta Academy.
In it, on the ’ Setting Up a Block Plugin With @wordpress/create-block’ section he talks about navigating to the site’s plugin directory and running npx @wordpress/create-block
.
Mine is located here - \\wsl.localhost\docker-desktop-data\data\docker\volumes\DevKinsta\public\test-site\wp-content\plugins
- so I open that in the terminal and try to run it, but get the following error:
`UNC paths are not supported. Defaulting to Windows directory.
Creating a new WordPress plugin in the my-first-block directory.
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: EPERM: operation not permitted, mkdir ‘C:\Windows\my-first-block’] {
errno: -4048,
code: ‘EPERM’,
syscall: ‘mkdir’,
path: ‘C:\Windows\my-first-block’
}
Node.js v18.12.1`
I’ve been banging my head against the wall trying to figure out a way to get this to work, but haven’t had any luck. Anyone have any suggestions?