首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >angular.js部署到heroku在引导上失败-sass-官方

angular.js部署到heroku在引导上失败-sass-官方
EN

Stack Overflow用户
提问于 2015-09-17 23:08:42
回答 1查看 245关注 0票数 0

我无法将我的angular.js应用程序部署到Heroku。我一直收到以下错误。但是,我可以在本地运行它,使用grunt服务或进行grunt构建。我正在使用heroku buildpack https://github.com/adamgoldstein/heroku-buildpack-nodejs-grunt-compass来让指南针工作。如果我不使用构建包,我会得到警告‘警告:找不到compass二进制文件’。

代码语言:javascript
复制
remote: Running "wiredep:app" (wiredep) task
remote: Warning: Error: bootstrap-sass-official is not installed. Try running `bower install`. Use --force to continue.
remote: 
remote: Aborted due to warnings.
remote: 
remote: 
remote: Execution Time (2015-09-17 14:11:30 UTC)
remote: loading tasks  332ms  ▇▇▇▇▇▇▇▇▇ 18%
remote: clean:dist     130ms  ▇▇▇▇ 7%
remote: wiredep:app     1.4s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 76%
remote: Total 1.9s
remote: 
remote: 
remote:  !     Push rejected, failed to compile Node.js app

我已经通过运行npm install和bower install清理并重新安装了我的node_modules和bower包。

这是我的bower.json依赖项列表:

代码语言:javascript
复制
"dependencies": {
    "angular": "^1.3.0",
    "bootstrap-sass-official": "^3.2.0",
    "angular-animate": "^1.3.0",
    "angular-aria": "^1.3.0",
    "angular-cookies": "^1.3.0",
    "angular-messages": "^1.3.0",
    "angular-resource": "^1.3.0",
    "angular-route": "^1.3.0",
    "angular-sanitize": "^1.3.0",
    "angular-touch": "^1.3.0",
    "ngInfiniteScroll": "~1.2.0",
    "angular-moment": "~0.9.2",
    "userapp-angular": "~2.0.4",
    "ui-bootstrap": "~0.12.1",
    "angular-ui-router": "~0.2.13",
    "modernizr": "~2.8.3",
    "angular-bootstrap": "~0.13.0",
    "angular-xeditable": "~0.1.9",
    "ngtoast": "~1.5.2",
    "restangular": "~1.5.1",
    "jquery-bridget": "~1.1.0",
    "angular-rangeslider": "~0.0.13",
    "angular-auto-focus": "~1.0.3",
    "angular-masonry": "~0.11.0",
    "angular-masonry-directive": "*",
    "angular-rt-popup": "~1.0.6"
  },
  "devDependencies": {
    "angular-mocks": "^1.3.0"
  },

和我的package.json依赖项:

代码语言:javascript
复制
    {
  "name": "angularnews",
  "version": "0.0.0",
  "dependencies": {
    "angular": "^1.3.x",
    "bower": "~1.4.1",
    "compass": "^0.1.1",
    "express": "~4.12.3",
    "generator-angular": "~0.11.1",
    "generator-karma": "~1.0.0",
    "grunt-cli": "~0.1.13",
    "gzippo": "~0.2.0",
    "morgan": "~1.5.2",
    "yo": "~1.4.6"
  },
  "repository": {},
  "devDependencies": {
    "grunt": "^0.4.5",
    "grunt-autoprefixer": "^2.0.0",
    "grunt-concurrent": "^1.0.0",
    "grunt-contrib-clean": "^0.6.0",
    "grunt-contrib-compass": "^1.0.3",
    "grunt-contrib-concat": "^0.5.0",
    "grunt-contrib-connect": "^0.9.0",
    "grunt-contrib-copy": "^0.7.0",
    "grunt-contrib-cssmin": "^0.12.0",
    "grunt-contrib-htmlmin": "^0.4.0",
    "grunt-contrib-imagemin": "^0.9.2",
    "grunt-contrib-jshint": "^0.11.0",
    "grunt-contrib-uglify": "^0.7.0",
    "grunt-contrib-watch": "^0.6.1",
    "grunt-filerev": "^2.1.2",
    "grunt-google-cdn": "^0.4.3",
    "grunt-newer": "^1.1.0",
    "grunt-ng-annotate": "^0.9.2",
    "grunt-svgmin": "^2.0.0",
    "grunt-usemin": "^3.0.0",
    "grunt-wiredep": "^2.0.0",
    "jshint-stylish": "^1.0.0",
    "load-grunt-tasks": "^3.1.0",
    "time-grunt": "^1.0.0"
  },
  "engines": {
    "node": ">=0.10.0"
  },
  "scripts": {
    "test": "grunt test",
    "postinstall": "bower cache clean && bower install"
  }
}

有什么想法吗?

EN

回答 1

Stack Overflow用户

发布于 2015-09-18 05:03:28

https://github.com/heroku/heroku-buildpack-nodejs构建包添加到heroku解决了我的问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32633850

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档