cli icon indicating copy to clipboard operation
cli copied to clipboard

[BUG] Problem with project GatsbyJS generation

Open llabori-venehsoftw opened this issue 3 months ago • 0 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues

This issue exists in the latest npm version

  • [x] I am using the latest npm

Current Behavior

When you generate a new project via the console using the command gatsby new and enter the initial data, the following texts are displayed at the end of the process in the terminal: ✔ Created site from template ▸ Installing Gatsby...

npm error Exit handler never called! npm error This is an error with npm itself. Please report this error at: npm error https://github.com/npm/cli/issues

ERROR UNKNOWN

Command failed with exit code 1: npm install --loglevel error --color always --legacy-peer-deps --no-audit

Translated with DeepL.com (free version)

Expected Behavior

The completion of the process of generating a new local site in GatsbyJS

Steps To Reproduce

  1. In this environment: 2.Distributor ID: Ubuntu Description: Ubuntu 24.04.3 LTS Release: 24.04 Codename: noble

  2. With this config...

  3. Run: gatsby new

  4. See error:

  5. What would you like to call your site? ✔ · Calendar VeneHindustrial What would you like to name the folder where your site will be created? ✔ VeneHindustrial/ calendar_v0.2 ✔ Will you be using JavaScript or TypeScript? · TypeScript ✔ Will you be using a CMS? · Netlify CMS ✔ Would you like to install a styling system? · Tailwind CSS ✔ Would you like to install additional features with other plugins? · Add the Google gtag script for e.g. Google Analytics · Add responsive images · Add an automatic sitemap · Generate a manifest file

Thanks! Here's what we'll now do:

🛠  Create a new Gatsby site in the folder calendar_v0.2
📚 Install and configure the plugin for Netlify CMS
🎨 Get you set up to use Tailwind CSS for styling your site
🔌 Install gatsby-plugin-google-gtag, gatsby-plugin-image, gatsby-plugin-sitemap, gatsby-plugin-manifest, gatsby-plugin-mdx

✔ Created site from template ▸ Installing Gatsby...

npm error Exit handler never called! npm error This is an error with npm itself. Please report this error at: npm error https://github.com/npm/cli/issues

ERROR UNKNOWN

Command failed with exit code 1: npm install --loglevel error --color always --legacy-peer-deps --no-audit

Image

Environment

  • npm: 10.9.3
  • Node.js: v22.18.0
  • OS Name: Ubuntu 24.04.3 LTS
  • System Model Name: Lenovo Intel core 5 + VMWare 16.0
  • npm config:
; copy and paste output from `npm config ls` here

; node bin location = /home/llabori/.nvm/versions/node/v22.18.0/bin/node ; node version = v22.18.0 ; npm local prefix = /home/llabori/Documents/VeneHindustrial ; npm version = 10.9.3 ; cwd = /home/llabori/Documents/VeneHindustrial ; HOME = /home/llabori ; Run npm config ls -l to show all defaults.

llabori-venehsoftw avatar Sep 11 '25 21:09 llabori-venehsoftw