Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/137.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs 如何在没有nodejs的情况下将angular gulp应用程序部署到heroku_Angularjs_Heroku_Angular_Gulp_Web Deployment - Fatal编程技术网

Angularjs 如何在没有nodejs的情况下将angular gulp应用程序部署到heroku

Angularjs 如何在没有nodejs的情况下将angular gulp应用程序部署到heroku,angularjs,heroku,angular,gulp,web-deployment,Angularjs,Heroku,Angular,Gulp,Web Deployment,我有一个主题,我想部署到heroku。问题是我没有在其中使用nodejs,但我遇到的所有教程都使用node、yaemon等,这不是我的情况 我已尝试创建procfile web: node app.js 但部署时出现了一个错误 remote: remote: -----> Node.js app detected remote: remote: -----> Creating runtime environment remote: remote: NPM_CONFIG

我有一个主题,我想部署到heroku。问题是我没有在其中使用nodejs,但我遇到的所有教程都使用node、yaemon等,这不是我的情况

我已尝试创建procfile

web: node app.js
但部署时出现了一个错误

remote:
remote: -----> Node.js app detected
remote:
remote: -----> Creating runtime environment
remote:
remote:        NPM_CONFIG_LOGLEVEL=error
remote:        NPM_CONFIG_PRODUCTION=true
remote:        NODE_ENV=production
remote:        NODE_MODULES_CACHE=true
remote:
remote: -----> Installing binaries
remote:        engines.node (package.json):  unspecified
remote:        engines.npm (package.json):   unspecified (use default)
remote:
remote:        Resolving node version (latest stable) via semver.io...
remote:        Downloading and installing node 5.11.1...
remote:        Using default npm version: 3.8.6
remote:
remote: -----> Restoring cache
remote:        Skipping cache restore (new runtime signature)
remote:
remote: -----> Building dependencies
remote:        Installing node modules (package.json)
remote:
remote:        > blur_admin@1.2.0 postinstall /tmp/build_5d79cad1abda92d62d5cf18
0cf8e22c1
remote:        > bower install
remote:
remote:        sh: 1: bower: not found
remote:
remote:        npm ERR! Linux 3.13.0-91-generic
remote:        npm ERR! argv "/tmp/build_5d79cad1abda92d62d5cf180cf8e22c1/.herok
u/node/bin/node" "/tmp/build_5d79cad1abda92d62d5cf180cf8e22c1/.heroku/node/bin/n
pm" "install" "--unsafe-perm" "--userconfig" "/tmp/build_5d79cad1abda92d62d5cf18
0cf8e22c1/.npmrc"
remote:        npm ERR! node v5.11.1
remote:        npm ERR! npm  v3.8.6
remote:        npm ERR! file sh
remote:        npm ERR! code ELIFECYCLE
remote:        npm ERR! errno ENOENT
remote:        npm ERR! syscall spawn
remote:        npm ERR! blur_admin@1.2.0 postinstall: `bower install`
remote:        npm ERR! spawn ENOENT
remote:        npm ERR!
remote:        npm ERR! Failed at the blur_admin@1.2.0 postinstall script 'bower
 install'.
remote:        npm ERR! Make sure you have the latest version of node.js and npm
 installed.
remote:        npm ERR! If you do, this is most likely a problem with the blur_a
dmin package,
remote:        npm ERR! not with npm itself.
remote:        npm ERR! Tell the author that this fails on your system:
remote:        npm ERR!     bower install
remote:        npm ERR! You can get information on how to open an issue for this
 project with:
remote:        npm ERR!     npm bugs blur_admin
remote:        npm ERR! Or if that isn't available, you can get their info via:
remote:        npm ERR!     npm owner ls blur_admin
remote:        npm ERR! There is likely additional logging output above.
remote:
remote:        npm ERR! Please include the following file with any support reque
st:
remote:        npm ERR!     /tmp/build_5d79cad1abda92d62d5cf180cf8e22c1/npm-debu
g.log
remote:
remote: -----> Build failed
remote:
remote:        We're sorry this build is failing! You can troubleshoot common is
sues here:
remote:        https://devcenter.heroku.com/articles/troubleshooting-node-deploy
s
remote:
remote:        Some possible problems:
remote:
remote:        - Node version not specified in package.json
remote:        https://devcenter.heroku.com/articles/nodejs-support#specifying-a
-node-js-version
remote:
remote:        - Bower may not be tracked in package.json
remote:        https://devcenter.heroku.com/articles/troubleshooting-node-deploy
s#ensure-you-aren-t-relying-on-untracked-dependencies
remote:
remote:        Love,
remote:        Heroku
remote:
remote:  !     Push rejected, failed to compile Node.js app.
remote:
有人能帮忙吗


谢谢

您似乎没有添加“bower”作为依赖项。检查package.json文件。您需要在“依赖项”部分有一个“bower”条目。比如:

  "dependencies": {
    "bower": "^1.8.0",
   }
也许你已经有了bower的devDepencendy,但对于Heroku来说,你也需要把它放在另一个部分。你也可以检查这个,这有另一种方法。
希望有帮助

你能把这封信寄出去吗error@SaE更新问题