节点应用程序heroku部署错误

时间:2017-01-02 07:47:36

标签: node.js heroku npm

我有一个node.json文件,用于我想在Heroku中部署的node.js应用程序。

{ "name": "timestamp", "version": "1.0.0", "description": "Node API project", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "node index.js" }, "author": "theokeles", "license": "ISC", "dependencies": { "express": "^4.14.0", "moment": "^2.17.1" }, "devDependencies": {}, "repository": { "type": "git", "url": "git+https://github.com/ashishdutta007/fcc-timestamp-api.git" }, "bugs": { "url": "https://github.com/ashishdutta007/fcc-timestamp-api/issues" }, "homepage": "https://github.com/ashishdutta007/fcc-timestamp-api#readme", "keywords": [ "timestamp", "node.js", "microservice" ] } 但是,虽然部署buildlog会引发错误" NPM_CONFIG_LOGLEVEL = error"。 Heroku build.log文件

-----> Node.js app detected
-----> Creating runtime environment
       NPM_CONFIG_LOGLEVEL=error
       NPM_CONFIG_PRODUCTION=true
       NODE_ENV=production
       NODE_MODULES_CACHE=true
-----> Installing binaries
       engines.node (package.json):  unspecified
       engines.npm (package.json):   unspecified (use default)  
       Resolving node version (latest stable) via semver.io...
       Downloading and installing node 6.9.1...
       Using default npm version: 3.10.8
-----> Restoring cache
       Loading 2 from cacheDirectories (default):
      - node_modules
      - bower_components (not cached - skipping)
-----> Building dependencies
       Installing node modules (package.json)
-----> Caching build
       Clearing previous node cache
       Saving 2 cacheDirectories (default):
       - node_modules
       - bower_components (nothing to cache)
-----> Build succeeded!
      ├── express@4.14.0
      └── moment@2.17.1
-----> Discovering process types
       Procfile declares types -> web
-----> Compressing...
       Done: 14.1M
-----> Launching...
       Released v5
       https://stormy-retreat-72893.herokuapp.com/ deployed to Heroku

我无法运行我的应用程序 任何人都可以帮我解决这个问题吗?

0 个答案:

没有答案
相关问题