postinstall script does not apprear to be platform independant #3941

robianmcd opened this Issue Sep 27, 2013 · 4 comments


None yet
2 participants

A file path in the postinstall script will only work in either windows or unix but not both.

this runs in windows:
"postinstall": ".\node_modules.bin\grunt prod"
while this runs in unix:
"postinstall": "./node_modules/.bin/grunt prod"

This is the error I get in windows when I use a unix style path:
'.' 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


domenic commented Sep 27, 2013

@domenic domenic closed this Sep 27, 2013

That only works if grunt is on the path. Which it is not on Heroku.


domenic commented Sep 27, 2013

False. Did you read the link?

nope. Looks like it will work. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment