question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fresh install with pnpm isn't working

See original GitHub issue

Version

5.0.4

Reproduction link

cli.vuejs.org

Environment info

  System:
    OS: Linux 5.10 Ubuntu 20.04.4 LTS (Focal Fossa)
    CPU: (32) x64 AMD Ryzen 9 5950X 16-Core Processor
  Binaries:
    Node: 16.14.2 - /usr/bin/node
    Yarn: 1.22.15 - /usr/bin/yarn
    npm: 8.6.0 - /usr/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: Not Found
  npmGlobalPackages:
    @vue/cli: 5.0.4


PNPM version is 7.0.0-rc.3 (I also tested rc.2)

Steps to reproduce

Regular vue create project-name. Manual or default 3.x install doesn’t matter. In the end, choose PNPM as your package manager (or launch with --packageManager=pnpm)

What is expected?

A cleanly installed project

What is actually happening?

No install except the basic generation of the required package.json and other related files (no node_modules)

Error: command failed: pnpm install --reporter silent --shamefully-hoist
    at ChildProcess.<anonymous> (/usr/lib/node_modules/@vue/cli/lib/util/executeCommand.js:138:16)
    at ChildProcess.emit (node:events:526:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)```

---
I added a link to the Vue CLI docs as I didn't know where to start up this code. StackBlitz and Codepen both basically generate the project for you, but that step before is actually what's going wrong.

<!-- generated by vue-issues. DO NOT REMOVE -->

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:8
  • Comments:21 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
bartliancommented, May 10, 2022

I have met this issue today. I have found the packageManager field value is ‘pnpm’ in .vuerc file. Then change to ‘npm’ and it can fix this issue temporarily.

1reaction
marty-mcgeecommented, Jul 28, 2022

Tried your approach. Still not able to create vue 2 scaffolded project with pnpm. Issue still persists. @ReSpawN @ayu14214

Hmmm… Let me try it in Vue 2. I will hopefully get back to you soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Codes | pnpm
pnpm install will fail if the project has unresolved peer dependencies or the peer dependencies are not matching the wanted ranges. To fix...
Read more >
pnpm error upon fresh install in embroider app - Stack Overflow
does the problem go away if you add @babel/plugin-proposal-object-rest-spread to your dependencies? it may be worth opening an issue on ember- ...
Read more >
npm, pnpm, and Yarn | WebStorm Documentation - JetBrains
Set Yarn 1 or pnpm as the default WebStorm package manager. Open the Settings for New Projects dialog (File | New Projects Setup...
Read more >
pnpm - npm
E.g., install dependencies via: pnpm install. Also, pnpm dlx instead of npx: pnpm dlx create-react-app my-cool-new-app. For more advanced usage, read pnpm ......
Read more >
pnpm/pnpm - Gitter
If installation is done not in the current working directory, we have to print ... Deleted node_modules and pnpm-lock files many times before...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found