Problem confirmation
After detailed troubleshooting, I confirmed the problem:
Root cause
There are bugs in the processing of vue tsc by rtk npx:
Command Result Reason
npx vue-tsc --version ✅ Normal native npx direct execution package
rtk npx vue-tsc --version ✅ Normal rtk correct proxy
npx vue-tsc --noEmit ✅ Normal native npx passes parameters to vue tsc
rtk npx vue-tsc --noEmit ❌ An error is reported. The rtk internally erroneously executes vue tsc as an npm script
The error message npm error Missing script: "vue tsc" clearly indicates that the rtk npx calls npm run vue tsc internally instead of npx vue tsc.
Problem confirmation
After detailed troubleshooting, I confirmed the problem:
Root cause
There are bugs in the processing of vue tsc by rtk npx:
Command Result Reason
npx vue-tsc --version ✅ Normal native npx direct execution package
rtk npx vue-tsc --version ✅ Normal rtk correct proxy
npx vue-tsc --noEmit ✅ Normal native npx passes parameters to vue tsc
rtk npx vue-tsc --noEmit ❌ An error is reported. The rtk internally erroneously executes vue tsc as an npm script
The error message npm error Missing script: "vue tsc" clearly indicates that the rtk npx calls npm run vue tsc internally instead of npx vue tsc.