I've installed testcafe globally on windows 7. When I am connected over ssh It can't find testcafe. error - 'testcafe' is not recognized as an internal or external command
What do I need to do to make it work? thanks
I've installed testcafe globally on windows 7. When I am connected over ssh It can't find testcafe. error - 'testcafe' is not recognized as an internal or external command
What do I need to do to make it work? thanks
It looks like "C:\Users\user\AppData\Roaming\npm" is absent in PATH. This may happen if you installed node.js via an official installer and then via nvm. The installer configures "AppData\Roaming\npm" as a global folder for modules, and the nvm installer - "C:\Program Files\nodejs". Both installers set the global folder settings to PATH. So, the official installer config might leave in PATH after deleting the installer and is used by the nvm version.
To check this scenario, run the following command:
npm config get prefix
If the command returns "AppData\Roaming\npm", change the letter to "Program Files\nodejs" using the following command:
npm config set prefix "C:\Program Files\nodejs"