Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.0.0 beta,RN 环境,package.json upgradePeerdeps ERR spawn pnpm ENOENT Install Failed 安装失败 #124

Open
SolidZORO opened this issue Jan 18, 2024 · 0 comments

Comments

@SolidZORO
Copy link

SolidZORO commented Jan 18, 2024

我是 yarn1 用户,yarn upgradePeerdeps 后出现 ERR spawn pnpm ENOENT。

看了下 https://www.npmjs.com/package/install-peerdeps 才知道原来 -P 是用 pnpm,我电脑没装 pnpm 就报错了。

https://github.com/NervJS/taro-project-templates/blob/55bc21804af5025da0089bff10cce200fa5e9e97/react-native/package.json.tmpl#L35C9-L35C9

"upgradePeerdeps": "install-peerdeps @tarojs/taro-rn@{{ version }} -o -P && install-peerdeps @tarojs/components-rn@{{ version }} -o -P && install-peerdeps @tarojs/router-rn@{{ version }} -o -P && pod-install"

考虑到是 beta,我就不 PR 了,如果需要的话,回头可以匹配一下用户的安装环境。

@SolidZORO SolidZORO changed the title 4.0.0 beta,RNpackage.json upgradePeerdeps ERR spawn pnpm ENOENT Install Failed 安装失败 4.0.0 beta,RN 环境,package.json upgradePeerdeps ERR spawn pnpm ENOENT Install Failed 安装失败 Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant