You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
馃摑 Documentation: read me file command not work聽#154
This is the appropriate issue form for the documentation issue I would like to report.
Expected
npm run tsc -- --project 01-ingredients --watch
it did not work
Actual
npm warn "./02-recipes" is being parsed as a normal command line argument.
npm warn Unknown cli config "--project". This will stop working in the next major version of npm.
npm warn Unknown cli config "--watch". This will stop working in the next major version of npm.
tsc
tsc ./02-recipes
error TS5112: tsconfig.json is present but will not be loaded if files are specified on commandline. Use '--ignoreConfig' to skip this error.
Additional Info
Otherwise, if I remove "npm run," it will work correctly and update tsconfig from "moduleResolution": "node" to "moduleResolution": "nodenext",
Hmm, this works fine for me when I run through the steps on https://www.learningtypescript.com/unions-and-literals/primitive-cooking. That's running from ~/repos/learning-typescript-projects/projects/unions-and-literals/primitive-cooking on my machine. Can you confirm which directory you're running the command from @mostafahamed15? Thanks for filing!
Activity
[-]馃摑 Documentation: <short description of the request>[/-][+]馃摑 Documentation: read me file command not work[/+]JoshuaKGoldberg commentedon Aug 2, 2026
Hmm, this works fine for me when I run through the steps on https://www.learningtypescript.com/unions-and-literals/primitive-cooking. That's running from
~/repos/learning-typescript-projects/projects/unions-and-literals/primitive-cookingon my machine. Can you confirm which directory you're running the command from @mostafahamed15? Thanks for filing!mostafahamed15 commentedon Aug 4, 2026
@JoshuaKGoldberg Many thanks for your response but error still occur on my machine
I solve the problem by changing the command to
/ tsc -- --project 01-ingredients --watch
still did not understand why npm run did not run properly.