node.js - npm postinstall fails with multiple commands -
inside composer.json, there's postinstall hook setup following:
"scripts" : { "dist" : "node dist; node_modules/.bin/doccoh src/package.js", "postinstall" : "node_modules/.bin/grunt setup || true; node_modules/.bin/bower install", "start" : "node server.js" } whenever run (on win git/gnu bash cli), end
command not found. either command written wrong or couldn't found
rough translation german cli error.
i tried splitting multiple ;/semicolon separated parts , first cd directory, ends same error message. replacing whole postinstall command set simple ls work. guess problem might semicolon separation or wrong usage of commands. overall got no idea what's wrong.
note: got grunt-cli version 0.1.9 , grunt version 0.4.1 installed globally.
i'm bit late answer, if you're on windows, multiple commands on single line executed use of &&
postinstall: "some command && other -c"
Comments
Post a Comment