npm ERR! 代码ELIFECYCLE npm postinstall脚本

嗨我试图部署一个npm / bower / gulp项目到heroku,但我得到了一个非常通用的错误,我得到本地运行

npm ERR! Darwin 14.1.0 npm ERR! argv "node" "/Users/admin/.node/bin/npm" "install" npm ERR! node v0.10.33 npm ERR! npm v2.1.9 npm ERR! code ELIFECYCLE npm ERR! @ postinstall: `bower install && gulp build` npm ERR! Exit status 1 

完整的npm-debug.log可以在https://gist.github.com/sjmcpherso/64be7626f37b3f296bb2find,以及我的package.json

在我的package.json中,我有一个postinstall任务运行'bower install'然后'gulp build',如果我单独运行它们都可以正常工作

 "private": true, "engines": { "node": ">=0.10.0" }, "main": "server.js", "scripts": { "start": "node server.js", "postinstall": "bower install && gulp build" }, 

在heroku上的错误是类似的

  npm ERR! Linux 3.13.0-49-generic npm ERR! argv "/tmp/build_3c30c62b654a8b995e1a813913a68a7d/.heroku/node/bin/node" "/tmp/build_3c30c62b654a8b995e1a813913a68a7d/.heroku/node/bin/npm" "install" "--unsafe-perm" "--userconfig" "/tmp/build_3c30c62b654a8b995e1a813913a68a7d/.npmrc" npm ERR! node v0.12.5 npm ERR! npm v2.11.2 npm ERR! code ELIFECYCLE npm ERR! @ postinstall: `bower install && gulp build` npm ERR! Exit status 1 

希望有人能帮忙,thanx

更新:

我发现这个问题与我的Sass文件中使用外部导入有关

 @import url("https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic&subset=latin"); 

删除这个导入和它的错误免费,这当然是一个错误,但我不确定哪些包是最新的

在gulp-minify-css中将processImport标志设置为false允许我包含字体导入,并且由于.scss导入在此之前处理,所以不会影响它们

 .minifyCss({processImport: false}))