Why does this happen at the Windows 10 prompt? Commands as in filename.js works.
This happens when I try:
node_modules/mocha/bin/mocha
In the environment variables I put:
%USERPROFILE%\AppData\Roaming\npm
I've already tried the username, with C:
, nothing worked. The mocha module was not installed globally, it is in another folder node_modules
within the project folder, I also put that path in the PATH and nothing.
How does node_modules
work, global, local installation, and how does this apply to Windows with environment variables?