Why does running npm test result in: '.' is not recognized as an internal or external command, operable program or batch file.?
问题 I have the following installed: Windows 10 Git bash (mingw64) Node.js v8.7.0 npm version 5.4.2 Packages: chai 4.4.1 mocha 3.5.0 I have a sample mocha test that will always pass when it actually runs. The command I'm running in my shell: npm test Output: ./node_modules/mocha/bin/_mocha '.' is not recognized as an internal or external command, operable program or batch file. npm ERR! Test failed. See above for more details. For some reason I'm able to run this command directly: ./node_modules