wordpressのカスタムブロックを作成しようと考え、npm run buildを記入しましたが以下エラーが出ます。
コード npm ERR! Missing script: "build" npm ERR! npm ERR! To see a list of scripts, run: npm ERR! npm run npm ERR! A complete log of this run can be found in: npm ERR! /home/ubuntu/.npm/_logs/2021-06-08T10_15_01_937Z-debug.log
各エラーの理由がわからず。。
修正方法ご教示頂けますでしょうか。
環境はawsです。
宜しくお願いします。
追記です。
最初に@wordpress/create-block ryochanと入力した際、
下記エラーが出ておりました。
ディレクトリエラーかなと思いますが修正方法ご教示頂ければ幸いです。
宜しくお願いします。
npm WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/environment/ryochan/node_modules/caniuse-lite/data/features/css3-cursors-newer.js' npm WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/environment/ryochan/node_modules/@wordpress/icons/build-module/library/html.js' npm WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/environment/ryochan/node_modules/dayjs/esm/locale/lo.js' npm WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/environment/ryochan/node_modules/lodash/_overArg.js' npm WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/environment/ryochan/node_modules/caniuse-lite/data/features/css3-cursors.js' npm WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/environment/ryochan/node_modules/@wordpress/icons/build/library/html.js' npm WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/environment/ryochan/node_modules/dayjs/locale/lo.js' npm WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/environment/ryochan/node_modules/lodash/_overRest.js' npm WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/environment/ryochan/node_modules/caniuse-lite/data/features/css3-tabsize.js' npm WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/environment/ryochan/node_modules/@wordpress/icons/src/library/html.js' npm WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/environment/ryochan/node_modules/dayjs/plugin/localeData.js' npm WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/environment/ryochan/node_modules/lodash/_parent.js' npm WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/environment/ryochan/node_modules/caniuse-lite/data/regions/CU.js' npm WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/environment/ryochan/node_modules/@wordpress/icons/build-module/library/image.js' npm WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/environment/ryochan/node_modules/dayjs/plugin/localizedFormat.js' npm WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/environment/ryochan/node_modules/lodash/_Promise.js' npm WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/environment/ryochan/node_modules/caniuse-lite/data/features/currentcolor.js' npm WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/environment/ryochan/node_modules/@wordpress/icons/build/library/image.js' ~ npm WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/environment/ryochan/node_modules/dayjs/package.json' npm WARN tar TAR_ENTRY_ERROR ENOENT: no such file or directory, open '/home/ubuntu/environment/ryochan/node_modules/dayjs/CHANGELOG.md' npm ERR! cb() never called! npm ERR! This is an error with npm itself. Please report this error at: npm ERR! <https://github.com/npm/cli/issues> npm ERR! A complete log of this run can be found in: npm ERR! /home/ubuntu/.npm/_logs/2021-06-08T10_09_58_741Z-debug.log Skipping "@wordpress/blocks" npm dependency. Reason: Command failed with ENOENT: npm install @wordpress/blocks spawn npm ENOENT Skipping "@wordpress/i18n" npm dependency. Reason: Command failed with ENOENT: npm install @wordpress/i18n spawn npm ENOENT Installing `@wordpress/scripts` package. It might take a couple of minutes...
あなたの回答
tips
プレビュー