Html5-boilerplate: Gulp build uses node-sri which uses cat and fails in Powershell/cmd.exe

Created on 9 Oct 2017  路  7Comments  路  Source: h5bp/html5-boilerplate

Error: Command failed: cat node_modules/jquery/dist/jquery.min.js | openssl dgst -sha256 -b.......

bug help wanted

All 7 comments

@Vincent2015 "When rerun?"

Meaning you can build the project once?

does "node_modules/jquery/dist/jquery.min.js" exist?

I am running on a Win64 OS and the command output below is clearly trying to run linux related commands such as cat.

(node:17044) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Error: Command failed: cat node_modules/jquery/dist/jquery.min.js | openssl dgst -sha256 -binary | openssl enc -base64 -A
'cat' is not recognized as an internal or external command,
operable program or batch file.

@paulrobello thanks! I get it now. The "rerun" distracted me from cat. The real issue is just running the build under powershell/cmd.exe.

If you need to build the project right now, use git bash, which comes with git for windows

I know that works as it's what I use on Windows to manage the project.

I'll rename the issue to better reflect the bug.

If someone wanted to rewrite that task to use something else (maybe ssri) then I would be very happy and I would merge that pull request.

Try to build this project in bash.

If you on Windows 10 you can use
Ubuntu from Windows Store!
or use Git for Windows

Thanks @Vista1nik for the pointer to Ubuntu in the Windows Store. That's a new alternative for folks.

I'd still like to fix the underlying issue so that the build is just node and we won't have to worry about it at all.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alrra picture alrra  路  6Comments

sideshowbarker picture sideshowbarker  路  5Comments

alrra picture alrra  路  18Comments

roblarsen picture roblarsen  路  10Comments

amilajack picture amilajack  路  19Comments