ahmadawais / create-guten-block

📦 A zero-configuration #0CJS developer toolkit for building WordPress Gutenberg block plugins.
https://Awais.dev/cgb-post
MIT License
3.15k stars 327 forks source link

Only a package.json and a .gitignore file after running the npx command #305

Open andornagy opened 2 years ago

andornagy commented 2 years ago

I ran the command npx create-guten-block arion-related-posts as suggested, in wp-content/plugins, The installation took a minute, and after that, the arion-related-posts folder had 2 files.

package.json

{
  "name": "arion-related-posts-cgb-guten-block",
  "version": "1.0.0",
  "private": true,
  "scripts": {
    "start": "cgb-scripts start",
    "build": "cgb-scripts build",
    "eject": "cgb-scripts eject"
  }
}

and a .gitignore for the node_modules

The scripts, don't seem to be working either.

I have: Node version 16.13.0 NPM version 8.1.0 Windows 10

arkive commented 2 years ago

Hi I have the same Problem, did you find any solution . Thanks.

Node version v16.13.1 NPM 8.1.2 MAC OSX

andornagy commented 2 years ago

Unfortunately no. But I don't think this is getting updated anymore. So I switched to @wordpress/scripts or @wordpress/blocks

flxspr commented 2 years ago

Might be too late to be of any help but the scripts and config used with create-guten-block are not working with Node v16. If you want to use cgb you'll have to roll back to Node v12.