Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
npm query .workspace -C "C:\project\path"
npm query .workspace -C "c:\project\path" # Notice the lowercase "c"
The first one works but the second one fails with this unhelpful error.
npm error Cannot destructure property 'location' of 'node.target' as it is null.
Expected Behavior
All npm utilities behave in a case-insentitive way on Windows. Here both examples should work.
Steps To Reproduce
No response
Environment
- npm: 11.5.2
- Node.js: 22.18.0
- OS Name: Windows