node - 新浪云git push报错 Unable to select a buildpack

查看:400
本文介绍了node - 新浪云git push报错 Unable to select a buildpack的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

新浪云git push报错 Unable to select a buildpack,

leadreamdeMacBook-Pro:leadream leadream$ git push sae master:1
Counting objects: 7, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 826 bytes | 0 bytes/s, done.
Total 7 (delta 2), reused 0 (delta 0)
remote: Exporting git code...
remote: Uploading...
-----> Unable to select a buildpack
remote: {"Code":0,"Data":"build image failed: exit status 1."}
remote: ERROR: Failed to build image
remote: error: hook declined to update refs/heads/1
To https://git.sinacloud.com/where
! [remote rejected] master -> 1 (hook declined)
error: failed to push some refs to 'https://git.sinacloud.com/where'

小伙伴们有遇到过这种情况的吗?

解决方案

目录错了,我git clone下来之后,在项目根目录下多了一个项目文件夹,所有文件像package.json都在里面。我在根目录运行时,找不到package.json,所以报错。

这篇关于node - 新浪云git push报错 Unable to select a buildpack的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆