Node.js 节点应用程序heroku部署错误

Node.js 节点应用程序heroku部署错误,node.js,heroku,npm,Node.js,Heroku,Npm,我有一个用于node.js应用程序的Package.json文件,我想在Heroku中部署它 { “名称”:“时间戳”, “版本”:“1.0.0”, “说明”:“节点API项目”, “main”:“index.js”, “脚本”:{ “测试”:“echo\”错误:未指定测试\“&退出1”, “开始”:“node index.js” }, “作者”:“theokeles”, “许可证”:“ISC”, “依赖项”:{ “express”:“^4.14.0”, “时刻”:“^2.17.1” }, “依

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

{
“名称”:“时间戳”,
“版本”:“1.0.0”,
“说明”:“节点API项目”,
“main”:“index.js”,
“脚本”:{
“测试”:“echo\”错误:未指定测试\“&退出1”,
“开始”:“node index.js”
},
“作者”:“theokeles”,
“许可证”:“ISC”,
“依赖项”:{
“express”:“^4.14.0”,
“时刻”:“^2.17.1”
},
“依赖性”:{},
“存储库”:{
“类型”:“git”,
“url”:“git”+https://github.com/ashishdutta007/fcc-timestamp-api.git"
},
“臭虫”:{
“url”:”https://github.com/ashishdutta007/fcc-timestamp-api/issues"
},
“主页”:https://github.com/ashishdutta007/fcc-timestamp-api#readme",
“关键词”:[
“时间戳”,
“node.js”,
“微服务”
]
}
但是在部署buildlog时会抛出错误“NPM\u CONFIG\u 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
我无法运行我的应用程序
有人能帮我解决这个问题吗?

这只是记录配置,不是错误。您的Procfile看起来像什么?Procfile内容:web:node index.js。谢谢@pedrorijo91我的Heroku部署现在可以工作了,因为Heroku中有一些配置变量,所以不能工作