docpad-plugin-dce
docpad-plugin-dce copied to clipboard
'bin' is not recognized as an internal or external command.
On Windows 8/git bash: npm install docpad-plugin-dce output ends in the following error:
> [email protected] postinstall c:\Users\Michael\Desktop\MDM\Client Projec
ts\SunStarIT.com\Development\Staging\node_modules\docpad-plugin-dce
> bin/postinstall.sh
'bin' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! weird error 1
npm ERR! not ok code 0
Makes sense... this post install process only works on *nix systems at the moment. I'll need to work on a version for Windows as well. For now you can manually complete the process if you need to. It just copies a DCE config file into the DocPad root directory - https://github.com/cauld/docpad-plugin-dce/blob/master/bin/postinstall.sh.
I got it working in Cloud9IDE. I tried writing a postinstall.js as it seems js files are supported via the second "postinstall via control+f" on this npmjs.org page: https://npmjs.org/doc/scripts.html but when I tried to use a js file for postinstall as seen in npm's example in C9 I got a sh: error. It seemed to be treating postinstall as a sh command only so switching back to your .sh file in C9 worked.
I haven't thought of a way to make it windows friendly yet myself.