部署到Heroku时发现Grunt错误

时间:2017-06-12 18:33:47

标签: heroku gruntjs

我收到以下错误:

remote:        sh: 1: grunt: not found

当我将代码部署到Heroku服务器时。

我在package.json中的安装脚本如下:

  "scripts": {
    "postinstall": "grunt heroku:production && bower install",
    "test": "mocha",
    "start": "node app.js"
  }

我将heroku配置设置为

heroku config:set NPM_CONFIG_PRODUCTION=false

我也做了

export BUILDPACK_URL=https://github.com/mbuchetics/heroku-buildpack-nodejs-grunt.git

但没有任何改变。我在依赖项和devDependencies中都有grunt和grunt-cli。

那我错在哪里?

0 个答案:

没有答案