Gulp Validator plugin failing to install.
See original GitHub issueI am unable to install the gulp-amphtml-validator
plugin into my node project.
How do we reproduce the issue?
Environment: Windows 10.0.14393, Node 7.5.0 (latest), npm 4.1.2 (latest)
- Make a new empty folder and navigate to it with an administrator command prompt
npm init
(accept all defaults)npm i --save gulp-amphtml-validator
Resulting error:
C:\Users\drasmussen\Documents\test-app>npm i --save gulp-amphtml-validator
> amphtml-validator@1.0.15 postinstall C:\Users\drasmussen\Documents\test-app\node_modules\amphtml-validator
> /bin/sh -c "exit 0" 2> NUL && rm NUL || node postinstall-windows.js
fs.js:907
return binding.stat(pathModule._makeLong(path));
^
Error: ENOENT: no such file or directory, stat 'C:\Users\drasmussen\AppData\Roaming\npm\amphtml-validator.cmd'
at Object.fs.statSync (fs.js:907:18)
at Object.<anonymous> (C:\Users\drasmussen\Documents\test-app\node_modules\amphtml-validator\postinstall-windows.js:36:16)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:418:7)
at startup (bootstrap_node.js:139:9)
test-app@1.0.0 C:\Users\drasmussen\Documents\test-app
`-- gulp-util@3.0.8 extraneous
npm WARN test-app@1.0.0 No description
npm WARN test-app@1.0.0 No repository field.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\drasmussen\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "i" "--save" "gulp-amphtml-validator"
npm ERR! node v7.5.0
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! amphtml-validator@1.0.15 postinstall: `/bin/sh -c "exit 0" 2> NUL && rm NUL || node postinstall-windows.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the amphtml-validator@1.0.15 postinstall script '/bin/sh -c "exit 0" 2> NUL && rm NUL || node postinstall-windows.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the amphtml-validator package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! /bin/sh -c "exit 0" 2> NUL && rm NUL || node postinstall-windows.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs amphtml-validator
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls amphtml-validator
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\drasmussen\Documents\test-app\npm-debug.log
Here is the debug log: npm-debug.log
I have tried installing amphtml-validator
globally, uninstalling it globally, installing the plugin globally, uninstalling the plugin globally—nothing seems to let me install the gulp plugin successfully.
Thank you for looking into this.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
GitHub - center-key/gulp-w3c-html-validator
This Gulp plugin is a wrapper for w3c-html-validator ("A package for testing HTML files or URLs against the W3C validator"). Note that it's...
Read more >gulp-w3c-html-validator - npm
Gulp plugin to validate HTML using the W3C Markup Validation Service. Latest version: 5.1.4, last published: a month ago.
Read more >Gulp failed after push - node.js - Stack Overflow
Welcome to StackOverflow. · That said. · npm install was executed, I get this error from the server part where Azure executes npm...
Read more >Gulp-w3cjs NPM - npm.io
First, install gulp-w3cjs as a development dependency: ... file); if (!file.w3cjs.success){ throw new Error('HTML validation error(s) found'); } })); });.
Read more >gulp-w3c-html-validation - npm package - Snyk
W3C html validation gulp plugin. Validate all files in a directory automatically. Useful features: This plug-in generate the W3C error's source ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Published the new version: https://www.npmjs.com/package/gulp-amphtml-validator
@sebastianbenz Thanks for the quick fix! This appears to be working as intended for me, now.