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.

vue add doesn't work with pnpm 6,report Error command failed:pnpm install --reporter silent --shamefully-hoist vue-cli-plugin-windicss -D

See original GitHub issue

Version

4.5.13

Environment info

Environment Info:

  System:
    OS: macOS 11.3.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Binaries:
    Node: 14.16.1 - ~/.nvm/versions/node/v14.16.1/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 6.14.12 - ~/.nvm/versions/node/v14.16.1/bin/npm
  Browsers:
    Chrome: 90.0.4430.93
    Edge: 90.0.818.56
    Firefox: 87.0
    Safari: 14.1
  npmPackages:
    @vue/cli-plugin-babel: ~4.5.0 => 4.5.13 
    @vue/cli-plugin-eslint: ~4.5.0 => 4.5.13 
    @vue/cli-service: ~4.5.0 => 4.5.13 
    eslint-plugin-vue: ^6.2.2 => 6.2.2 
    vue: ^2.6.11 => 2.6.12 
    vue-cli-plugin-windicss: ~0.2.0 => 0.2.0 
    vue-eslint-parser:  7.6.0 
    vue-template-compiler: ^2.6.11 => 2.6.12 
  npmGlobalPackages:
    @vue/cli: 4.5.13

Steps to reproduce

1.vue create tailing 2、rm -fr node_module 3、pnpm i 4、vue add windicss

What is expected?

add windicss successfully

What is actually happening?

ERROR command failed: pnpm install --reporter silent --shamefully-hoist vue-cli-plugin-windicss -D

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:15
  • Comments:28

github_iconTop GitHub Comments

21reactions
sujianqingfengcommented, May 6, 2022

pnpm 7.0.0 Same problem

[I] ➜ vue create xxxxxx


Vue CLI v5.0.4
? Please pick a preset: Default ([Vue 2] babel, eslint)


Vue CLI v5.0.4
✨  Creating project in /home/hens/work-space/xxxxxxx.
🗃  Initializing git repository...
⚙️  Installing CLI plugins. This might take a while...

 ERROR  Error: command failed: pnpm install --reporter silent --shamefully-hoist
Error: command failed: pnpm install --reporter silent --shamefully-hoist
    at ChildProcess.<anonymous> (/home/hens/.nvm/versions/node/v16.15.0/lib/node_modules/@vue/cli/lib/util/executeCommand.js:138:16)
    at ChildProcess.emit (node:events:527:28)
    at maybeClose (node:internal/child_process:1092:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
···

13reactions
kuohuanhuancommented, May 30, 2022

Really thanks https://github.com/vuejs/vue-cli/issues/6476#issuecomment-1137174677 Fixed via

$ npm i pnpm@6 -g
$ vue create PROJECT

Works great for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - Problems with NPM INSTALL command in Vue project
Now that I want to run the project separately and already having the whole document I get the following error. λ npm install...
Read more >
pnpm install --reporter silent --shamefully-hoist 错误解决办法_ ...
ERROR Error : command failed: pnpm install --reporter silent --shamefully-hoist 错误解决办法_凡人2705的博客-CSDN博客
Read more >
pnpm install --reporter silent --shamefully-hoist @vue/cli-service
npm i pnpm@6 -g Using the PNPM 7.x version causes an error, PNPM 6.32.14 can successfully create a project.
Read more >
Installation - Vue.js
There are four primary ways of adding Vue.js to a project: Import it as a CDN package on the page; Download the JavaScript...
Read more >
New Vuex Client / Starting Project / Guide / Logux
Logux is a client-server communication tool for collaborative web applications with optimistics UI, offline first and live updates.
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