Skip to content
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

'bin' is not recognized as an internal or external command. #3

Open
mikeumus opened this issue Sep 26, 2013 · 2 comments
Open

'bin' is not recognized as an internal or external command. #3

mikeumus opened this issue Sep 26, 2013 · 2 comments

Comments

@mikeumus
Copy link

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
@cauld
Copy link
Owner

cauld commented Sep 26, 2013

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.

@mikeumus
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants