Run grunt build command on Travis CI
问题 I am using Travis CI to test and build my project and as part of it I want travis to run grunt build i have tried the following but have had no luck. script: "grunt build" script: "./node_modules/grunt build" script: "./node_modules/grunt/grunt build" script: "./node_modules/grunt/grunt.js build" 回答1: Have you made sure to install grunt-cli globally on your Travis node? My Travis CI config looks like: language: node_js node_js: - "0.8" before_install: npm install -g grunt-cli install: npm