New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validator CLI: The system cannot find the path specified. #5855
Comments
/to @powdercloud |
I think for starters the issue here is that https://github.com/ampproject/amphtml/blob/master/validator/nodejs/index.sh won't run on Windows. Sorry about this. There may be a work-around, by looking for the index.js file which should be somewhere in the node_modules amphtml-validator directory, and executing that with node directly. But I'm not familiar enough with nodejs on Windows to say how that would be done specifically. |
Thanks for letting me know. For now I'll just keep using the browser extension (my work computer's OS is not likely to be updated any time soon!) |
OK, I found a Windows machine (normally used for gaming in the office haha ...). After installing node.js with the binary installer, I was able to install amphtml-validator with npm -g amphtml-validator, just like you did. And my versions are node v6.9.1 and npm v3.10.8. The error message that I see when running amphtml-validator directly is also exactly what you saw ("The system cannot find the path specified"). |
@powdercloud That worked, thanks! |
Wanted to update since the npm is updated now. The workaround posted above is no longer necessary. After installing with |
@powdercloud Looks like it's working! |
When I install the Validator Command Line Tool, it appears to install correctly, but when I try to use it, I get the following error:
It's entirely possible this is a problem with my system, but all other node modules I have tried work.
How do we reproduce the issue?
I am using 64-bit Windows 7 with the following:
The text was updated successfully, but these errors were encountered: