<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ADEYINKE-30</title>
    <description>The latest articles on DEV Community by ADEYINKE-30 (@adeyinke30).</description>
    <link>https://dev.to/adeyinke30</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4260867%2F6d719e8b-378d-4aaa-9e21-73de8183aa0d.png</url>
      <title>DEV Community: ADEYINKE-30</title>
      <link>https://dev.to/adeyinke30</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/adeyinke30"/>
    <language>en</language>
    <item>
      <title>My Backend Development Journey: Understanding and Resolving pnpm's Ignored Build Scripts Warning</title>
      <dc:creator>ADEYINKE-30</dc:creator>
      <pubDate>Mon, 23 Nov 2026 16:36:48 +0000</pubDate>
      <link>https://dev.to/adeyinke30/my-backend-development-journey-understanding-and-resolving-pnpms-ignored-build-scripts-warning-k6i</link>
      <guid>https://dev.to/adeyinke30/my-backend-development-journey-understanding-and-resolving-pnpms-ignored-build-scripts-warning-k6i</guid>
      <description>&lt;p&gt;One thing I'm learning as a software developer is that installing dependencies is not just about running commands in the terminal. It's also about understanding what each package does and knowing how to troubleshoot when something doesn't go as expected.&lt;/p&gt;

&lt;p&gt;While setting up my backend project with Node.js, Express, TypeScript and MongoDB, I encountered a warning from pnpm:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"Ignored build scripts."&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Initially, I wasn't sure what was happening, so I decided to investigate and understand the reason behind it.&lt;/p&gt;

&lt;p&gt;Here's what I learned along the way.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Understanding the dependencies I was installing
&lt;/h3&gt;

&lt;p&gt;I was installing development dependencies using:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pnpm add -D typescript tsx @types/node @types/express @types/multer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;But what exactly do these packages do?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;TypeScript:&lt;/strong&gt; Allows us to write JavaScript with static type checking, helping us identify potential errors during development.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;tsx:&lt;/strong&gt; Allows us to execute TypeScript files directly during development without manually compiling them first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;@types/node:&lt;/strong&gt; Provides TypeScript type definitions for Node.js APIs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;@types/express:&lt;/strong&gt; Provides TypeScript type definitions for Express.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;@types/multer:&lt;/strong&gt; Provides TypeScript type definitions for Multer.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I also learned the difference between production and development dependencies.&lt;/p&gt;

&lt;p&gt;Production dependencies are required when running the application, while development dependencies provide tools that help us write, check and execute our code during development.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Understanding the pnpm warning
&lt;/h3&gt;

&lt;p&gt;This was where things became interesting.&lt;/p&gt;

&lt;p&gt;I initially thought I had encountered an installation error, but I discovered that it was related to a security feature in newer versions of pnpm.&lt;/p&gt;

&lt;p&gt;pnpm can block dependency lifecycle scripts unless they have been explicitly approved.&lt;/p&gt;

&lt;p&gt;But what are build scripts?&lt;/p&gt;

&lt;p&gt;Some packages need to execute scripts during installation to prepare their binaries or other resources.&lt;/p&gt;

&lt;p&gt;In my case, the package involved was &lt;strong&gt;esbuild&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. What exactly is esbuild?
&lt;/h3&gt;

&lt;p&gt;esbuild is a fast JavaScript bundler and build tool.&lt;/p&gt;

&lt;p&gt;It helps transform and bundle JavaScript and TypeScript code efficiently.&lt;/p&gt;

&lt;p&gt;It is commonly used within modern frontend development tools and build systems, including Vite.&lt;/p&gt;

&lt;p&gt;This helped me understand why esbuild was involved in my project setup.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. How I approached the problem
&lt;/h3&gt;

&lt;p&gt;My first step was to run:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pnpm approve-builds
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This command opens an interactive selection menu where you can choose which dependencies are allowed to execute their build scripts.&lt;/p&gt;

&lt;p&gt;I was supposed to press the &lt;strong&gt;Spacebar&lt;/strong&gt; to select esbuild before pressing Enter.&lt;/p&gt;

&lt;p&gt;However, I pressed Enter without selecting it.&lt;/p&gt;

&lt;p&gt;As a result, the package wasn't approved.&lt;/p&gt;

&lt;p&gt;That was an important lesson for me: understanding what a command does is just as important as knowing how to execute it.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Correcting the configuration
&lt;/h3&gt;

&lt;p&gt;I then examined my &lt;code&gt;pnpm-workspace.yaml&lt;/code&gt; file.&lt;/p&gt;

&lt;p&gt;I found the build permission configuration and updated it to allow esbuild:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;allowBuilds&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;esbuild&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This explicitly approves esbuild's build script.&lt;/p&gt;

&lt;p&gt;After saving the configuration, I returned to my terminal and ran:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pnpm install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This applies the dependency configuration and ensures the installation is up to date.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Next:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pnpm rebuild esbuild
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This rebuilds esbuild so that its required installation scripts can run.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Verifying the installed dependencies
&lt;/h3&gt;

&lt;p&gt;Finally, I ran:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pnpm list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This allowed me to inspect the dependencies installed in my project and confirm that the packages I needed were present.&lt;/p&gt;

&lt;h3&gt;
  
  
  My biggest takeaways
&lt;/h3&gt;

&lt;p&gt;This experience taught me several important lessons:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Not every warning is necessarily an application error.&lt;/li&gt;
&lt;li&gt;Package managers have security features that developers need to understand.&lt;/li&gt;
&lt;li&gt;Every dependency has a purpose, and we should understand why we're installing it.&lt;/li&gt;
&lt;li&gt;Reading terminal messages carefully can save time when troubleshooting.&lt;/li&gt;
&lt;li&gt;Learning how to configure tools is an important part of backend development.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;I'm beginning to appreciate that becoming a better developer isn't just about writing code. It's also about understanding the tools, configurations and processes that make our applications work.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;And this is one of the reasons I'm developing an interest in technical writing.&lt;/p&gt;

&lt;p&gt;I want to document what I learn, explain technical concepts in simple terms, and make my learning experiences useful to other developers, especially beginners.&lt;/p&gt;

&lt;p&gt;One concept at a time. One command at a time. One problem at a time. ❤️&lt;/p&gt;

</description>
      <category>node</category>
      <category>typescript</category>
      <category>javascript</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
