---
title: "Comment by Ritesh Tailor on \"A Better Way to Build a WordPress Plugin\" | Hashnode"
description: "Hi, I have tried the exact procedure you have explained. Installed WP-CLI globally and then followed above code to create a custom plugin, but I am getting npm"
url: "https://hashnode.com/posts/a-better-way-to-build-a-wordpress-plugin/6327752ab1a2e9b8401e181b/comment/636baed4846bd4f86306bd54"
---

[Discussion](https://hashnode.com/posts/a-better-way-to-build-a-wordpress-plugin/6327752ab1a2e9b8401e181b)

Comment [A Better Way to Build a WordPress Plugin](https://hashnode.com/posts/a-better-way-to-build-a-wordpress-plugin/6327752ab1a2e9b8401e181b)

[Ritesh Tailor](https://hashnode.com/@riteshtailor)

[Nov 9, 2022](https://hashnode.com/posts/a-better-way-to-build-a-wordpress-plugin/6327752ab1a2e9b8401e181b/comment/636baed4846bd4f86306bd54)

Hi,

I have tried the exact procedure you have explained. Installed WP-CLI globally and then followed above code to create a custom plugin, but I am getting npm ERR! Missing script: "wp"

Could you please help me with what I am missing?
