Fresh install with pnpm isn't working
See original GitHub issueVersion
5.0.4
Reproduction link
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:
- Created a year ago
- Reactions:8
- Comments:21 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
Hmmm… Let me try it in Vue 2. I will hopefully get back to you soon.