We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 895e6e3 commit 8c8097eCopy full SHA for 8c8097e
packages/devtools/src/server-rpc/npm.ts
@@ -90,9 +90,11 @@ export function setupNpmRPC({ nuxt }: NuxtDevtoolsServerContext) {
90
const execa = process.getProcess()
91
await execa
92
93
- const code = execa.exitCode
+ await Promise.resolve()
94
+
95
+ const code = execa.exitCode || 0
96
if (code !== 0) {
- console.error(execa.stderr)
97
+ console.error(String(execa.stderr))
98
throw new Error(`Failed to install module, process exited with ${code}`)
99
}
100
0 commit comments