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

npm ERR! Unsupported URL Type "workspace:": workspace:^ #1804

Open
andorcba opened this issue Jun 20, 2024 · 1 comment
Open

npm ERR! Unsupported URL Type "workspace:": workspace:^ #1804

andorcba opened this issue Jun 20, 2024 · 1 comment

Comments

@andorcba
Copy link

问题描述

Fork 该工程时,在taro-ui-demo-rn目录中执行:pnpm run dev:rn,报错
复现步骤

// 这里可以贴代码

Installing React-Native related packages:
react@^18.1.0 react-dom@^18.1.0 react-native@^0.70.5 expo@~47.0.3 @tarojs/taro-rn @tarojs/components-rn @tarojs/rn-runner @tarojs/rn-supporter @tarojs/runtime-rn
Error when detecting React-Native packages:
Error: Command failed: npm install "react@^18.1.0" "react-dom@^18.1.0" "react-native@^0.70.5" "expo@~47.0.3" "@tarojs/taro-rn" "@tarojs/components-rn" "@tarojs/rn-runner" "@tarojs/rn-supporter" "@tarojs/runtime-rn" --save
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "workspace:": workspace:^

npm ERR! A complete log of this run can be found in: /Users/XXX/.npm/_logs/2024-06-20T08_41_01_694Z-debug-0.log

at ChildProcess.exithandler (node:child_process:422:12)
at ChildProcess.emit (node:events:517:28)
at maybeClose (node:internal/child_process:1098:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:303:5) {

code: 1,
killed: false,
signal: null,
cmd: 'npm install "react@^18.1.0" "react-dom@^18.1.0" "react-native@^0.70.5" "expo@~47.0.3" "@tarojs/taro-rn" "@tarojs/components-rn" "@tarojs/rn-runner" "@tarojs/rn-supporter" "@tarojs/runtime-rn" --save'
}
TIP: 1) Try to remove React-Native dependencies in package.json and shoot again; 2) Install the packages above manually.
期望行为

报错信息

系统信息

补充信息

@robinv8
Copy link
Member

robinv8 commented Jun 30, 2024

目前 RN 不支持 workspace

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

2 participants