[BUG] npm run fails on Windows when project folder is case sensitive #3299
Labels
Bug
thing that needs fixing
cmd:run-script
related to `npm run-script`
platform:windows
is Windows-specific
Release 7.x
work is associated with a specific npm 7 release
Is there an existing issue for this?
Current Behavior
When case sensitivity is enabled, all scripts, e.g.
npm run build
, will fail with the error:Where
module_name
is the name of the the module called by the script, e.g.webpack
orcross-env
Expected Behavior
npm run
should run scripts as normal, unaffected by the case sensitivity setting of the project folder (or its subfolders).Steps To Reproduce
node_modules
if it already existsfsutil.exe file setCaseSensitiveInfo . enable
npm i
package.json
file, e.g.npm run build
'module_name' is not recognized as an internal or external command
As an alternative to steps 1-4, you could also recursively apply case sensitivity to the content of your project folder using this PowerShell command:
Environment
The text was updated successfully, but these errors were encountered: