推送到Heroku时Bower错误:bower ENOTDIR ENOTDIR,而不是目录'/ tmp / build_xxx / bower_components

时间:2015-10-15 16:38:06

标签: git heroku ember.js bower ember-cli

当我尝试在Heroku上推送一个ember-cli项目时,我遇到了问题。 这是返回给我的日志。

Total 0 (delta 0), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Fetching custom git buildpack... done
remote: -----> Ember CLI app detected
remote: -----> Exporting config vars to environment
remote: -----> Building environment: production
remote: -----> Requested node range:  0.12.7
remote: -----> Resolved node version: 0.12.7
remote: -----> Downloading and installing node
remote: -----> Using default npm version: 2.11.3
remote: -----> Downloading and installing nginx
remote: -----> Adding boot script
remote: -----> Copying configs
remote: -----> Creating node_modules cache directory
remote: -----> Creating bower_components cache directory
remote: -----> Installing bower which is required by other  dependencies
remote:        bower@1.6.2 node_modules/bower
remote: -----> Pruning cached dependencies not specified in package.json
remote: -----> Pruning cached bower dependencies not specified in   bower.json
remote:        bower ENOTDIR       ENOTDIR, not a directory '/tmp/build_7092e0e145a6f8787208ecf8b53c932a/bower_components'
remote: 
remote:  !     Push rejected, failed to compile Ember CLI app
remote: 
remote: Verifying deploy....
remote: 
remote: !   Push rejected to my-app 

我尝试使用heroku-repo清除缓存,但仍然存在同样的问题。

如果我使用ember build编译项目,那就没问题了。只是消息:

bower invalid-meta  ember is missing "ignore" entry in bower.json

之前的部署工作正常。

1 个答案:

答案 0 :(得分:2)

今天遇到同样的问题。这似乎是由最新的bower版本1.6.2引起的 - 强制版本为1.5.3解决了这个问题。

请参阅此分支:https://github.com/AltSchool/heroku-buildpack-ember-cli/pull/1/files

编辑:这已合并到tonycoco / heroku-buildpack-ember-cli:https://github.com/tonycoco/heroku-buildpack-ember-cli/pull/110