Open king-open opened 1 year ago
Follow the tips my friend gave me
mkdir back && cd back && pnpm init && vue create .
still wrong
I have tried to use create-vue in slowly getting used to
You can add strict-peer-dependencies=false
in .npmrc
file and it may work
nope, same error
Yeah, I just found it that the error interrupted the process of installing, and the next process of generating files wouldn't execute. So the method won't work, maybe another solution is to degrade pnpm to 6.x because the installing is build-in.
You can start a new line in .npmrc
and add auto-install-peers=true
. This works for pnpm v6 and pnpm v7. 👀
i try first
Wow, lowering pnpm to 6 works fine . amazing
thanks man
You can start a new line in
.npmrc
and addauto-install-peers=true
. This works for pnpm v6 and pnpm v7. 👀
That won't work because .npmrc file will be overwrite by cli🤣
Yeah
You can start a new line in
.npmrc
and addauto-install-peers=true
. This works for pnpm v6 and pnpm v7. 👀That won't work because .npmrc file will be overwrite by cli🤣
auto-install-peers=true
. I'm still waiting for a friend who has permission to merge the PR to review and compare https://github.com/vuejs/vue-cli/pull/7265. pnpm install
, which also requires manually adding auto-install-peers=true
.So if I add that sentence to .npmrc first, it's fine
This issue was fixed in #7265 and should be closed.
ok thanks
Why doesn't it work anymore
pnpm i 提示这个错误 no such file or directory, stat 'Users\admin\Desktop\demo\dome_vue3\node_modules.pnpm\jsdom@21.1.0\node_modules\decimal.js'
这是什么原因
Version
5.0.8
Environment info
Steps to reproduce
vue create back
选择
pnpm
报错What is expected?
正常能够使用pnpm构建项目依赖
What is actually happening?
安装使用pnpm 出现以下错误
command failed: pnpm install --reporter silent --shamefully-hoist --registry=https://registry.npmmirror.com/