nuxt / nuxt/devtools

fix: failed to install module via devtools - yarn

Open
#593 1 comment 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
3.3k
Forks
214
Avg merge
13h 22m
Merged PRs (30d)
18

Description

🐛 The bug

using vue 3.4.15, nuxt 3.10.1 and devtools 1.0.8 with a fresh install, i am unable to install modules via the devtools window, with the following error message:

RPC error on executing "installNuxtModule": Failed to install module, process exited with 1

running the commands manually in my terminal works fine.

To reproduce:

  • create a new nuxt project: npx nuxi@latest init test & select yarn
  • start app with yarn dev
  • pick any module & click install
  • error occurs
warning vscode-languageclient@7.0.0: The engine "vscode" appears to be invalid.                                                                                                 12:15:21 PM
warning "nuxt > @nuxt/devtools@1.0.8" has unmet peer dependency "vite@*".
warning "nuxt > @nuxt/devtools > @nuxt/devtools-kit@1.0.8" has unmet peer dependency "vite@*".
warning "nuxt > @nuxt/devtools > vite-plugin-inspect@0.8.3" has unmet peer dependency "vite@^3.1.0 || ^4.0.0 || ^5.0.0-0".
warning "nuxt > @nuxt/devtools > vite-plugin-vue-inspector@4.0.2" has unmet peer dependency "vite@^3.0.0-0 || ^4.0.0-0 || ^5.0.0-0".


 ERROR  [nuxt-devtools] RPC error on executing "installNuxtModule":                                                                                                                     12:15:21 PM
Failed to install module, process exited with 1
🛠️ To reproduce

https://stackblitz.com/edit/yarn-devtools-bug?file=%2Fhome%2Fprojects%2Ftest%2Fnuxt.config.ts

🌈 Expected behavior

Be able to install modules via devtools in yarn

ℹ️ Additional context

i tried installing modules using the other package managers as well. NPM failed with a different error, while pnpm worked fine.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked StackBlitz reproduction and the installNuxtModule RPC operation described in the report. Compare module installation through Yarn, npm, and pnpm, using the reported Nuxt and devtools versions. Done means modules install successfully from the devtools window with Yarn without the RPC process-exited error.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxtjs, typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.