Skip to content

npm create nuxt@latest fails to load modules when pnpm is not installed #1342

Closed

Description

@BinarySpike

Following these instructions: https://nuxt.com/docs/4.x/getting-started/installation

When using the ui template, npm package manager, and installing the modules @vueuse/nuxt, @nuxtjs/seo, and @nuxtjs/tailwindcss I get a module install error ■ Error: spawn pnpm ENOENT

After installing corepack, enabling pnpm, running the creation successfully, then removing the project, disabling pnpm, and running the creation a second time, it works successfully.

Strangely it seems to find/use pnpm even after I corepack disable pnpm and even do a corepack cache clear. I cannot reproduce the error because it keeps using pnpm...🤷

This is the console output:

Which template would you like to use?
│  ui – App using Nuxt UI
│
◇  Creating project in website
│
◇  Downloaded ui template
│
◇  Which package manager would you like to use?
│  npm
│
◇  Initialize git repository?
│  No
│
◇  Dependencies installed
│
◇  Would you like to browse and install modules?
│  Yes
│
◇  Modules loaded
│
│
│
◇  Search and select modules:
│  3 items selected
│
●  Resolved @vueuse/nuxt, @nuxtjs/tailwindcss, @nuxtjs/seo, adding modules...
│
●  Installing @vueuse/nuxt@14.3.0, @nuxtjs/tailwindcss@6.14.0, @nuxtjs/seo@5.3.0 as dependencies
│
■  Error: spawn pnpm ENOENT
│
◇  Install failed for @vueuse/nuxt@14.3.0, @nuxtjs/tailwindcss@6.14.0, @nuxtjs/seo@5.3.0. Do you want to continue adding the modules to nuxt.config?
│  Yes
│
●  Adding @vueuse/nuxt to the modules
│
●  Adding @nuxtjs/tailwindcss to the modules
│
●  Adding @nuxtjs/seo to the modules
file:///home/nathan/code/presently/node_modules/@nuxt/kit/dist/index.mjs:701
        throw new TypeError(`Could not load \`${nuxtModule}\`. Is it installed?`);

Activity

  1. coderabbitai commented on Jun 14, 2026

    @coderabbitai
    ⚠️ Possible Duplicate Issue(s)

    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    You can configure auto-planning by selecting labels in the issue_enrichment configuration.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions