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

Running Napi new to create project error #2070

Open
qidasheng369 opened this issue Apr 29, 2024 · 0 comments
Open

Running Napi new to create project error #2070

qidasheng369 opened this issue Apr 29, 2024 · 0 comments

Comments

@qidasheng369
Copy link

Computer environment: MacBook Pro 13-inch, 2019, Two Thunderbolt 3 ports 1.4 GHz 四核Intel Core i5
macOS: 14.1.2 (23B92)
pnpm version: 9.0.6
node version: v22.0.0
yanr version: 3.6.0

❯ napi new
? Package name: (The name filed in your package.json) rs-native
? Dir name: rs-native
? Choose targets you want to support x86_64-apple-darwin,
x86_64-pc-windows-msvc, x86_64-unknown-linux-gnu
? Enable github actions? Yes
Writing Cargo.toml
Writing .npmignore
Writing build.rs
Writing package.json
Writing src/lib.rs
Writing __test__/index.spec.mjs
Writing .github/workflows/CI.yml
Writing .cargo/config.toml
Writing rustfmt.toml
Writing .gitignore
Writing .yarnrc.yml
Unknown Syntax Error: Unsupported option name ("--yarn-path").

$ yarn set version [--only-if-needed] <version>
Internal Error: Execution failed with a non-error rejection (rejected value: undefined)
    at Cli.error (/Users/zhouzhou/lib/pnpm/global/5/.pnpm/@napi-rs+cli@2.18.2/node_modules/@napi-rs/cli/scripts/index.js:3321:21)
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