Node.js nodejs-Heroku构建超时(它曾经工作过)
我正在尝试通过部署我拥有的nodejs应用程序Node.js nodejs-Heroku构建超时(它曾经工作过),node.js,heroku,Node.js,Heroku,我正在尝试通过部署我拥有的nodejs应用程序 git push heroku master 由于超时,生成失败,这是生成日志 -----> Node.js app detected -----> Creating runtime environment NPM_CONFIG_LOGLEVEL=error NODE_VERBOSE=false NODE_ENV=production NODE_MODULES_CACHE=t
git push heroku master
由于超时,生成失败,这是生成日志
-----> Node.js app detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true
-----> Installing binaries
engines.node (package.json): unspecified
engines.npm (package.json): unspecified (use default)
Resolving node version 10.x...
Downloading and installing node 10.15.3...
Using default npm version: 6.4.1
-----> Restoring cache
Cached directories were not restored due to a change in version of node, npm, yarn or stack
Module installation may take longer for this build
-----> Installing dependencies
Installing node modules (package.json + package-lock)
> node-expat@2.3.17 install /tmp/build_c3cb8f26de145fdc95dbb7c74ca4abea/node_modules/node-expat
> node-gyp rebuild
make: Entering directory '/tmp/build_c3cb8f26de145fdc95dbb7c74ca4abea/node_modules/node-expat/build'
CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlparse.o
../deps/libexpat/lib/xmlparse.c: In function ‘gather_time_entropy’:
../deps/libexpat/lib/xmlparse.c:780:7: warning: variable ‘gettimeofday_res’ set but not used [-Wunused-but-set-variable]
int gettimeofday_res;
^
CC(target) Release/obj.target/expat/deps/libexpat/lib/xmltok.o
CC(target) Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
AR(target) Release/obj.target/deps/libexpat/libexpat.a
COPY Release/libexpat.a
CXX(target) Release/obj.target/node_expat/node-expat.o
../node-expat.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Parser::Parse(Nan::NAN_METHOD_ARGS_TYPE)’:
../node-expat.cc:103:47: warning: ‘v8::Local<v8::Object> v8::Value::ToObject() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
Local<Object> obj = info[0]->ToObject();
^
In file included from /app/.node-gyp/10.15.3/include/node/node.h:63:0,
from ../node_modules/nan/nan.h:52,
from ../node-expat.cc:1:
/app/.node-gyp/10.15.3/include/node/v8.h:10046:15: note: declared here
Local<Object> Value::ToObject() const {
^
../node-expat.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_TYPE Parser::SetUnknownEncoding(Nan::NAN_METHOD_ARGS_TYPE)’:
../node-expat.cc:470:59: warning: ‘int32_t v8::Value::Int32Value() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
parser->xmlEncodingInfo->map[i] = m->Int32Value();
^
In file included from /app/.node-gyp/10.15.3/include/node/v8.h:26:0,
from /app/.node-gyp/10.15.3/include/node/node.h:63,
from ../node_modules/nan/nan.h:52,
from ../node-expat.cc:1:
/app/.node-gyp/10.15.3/include/node/v8.h:2478:46: note: declared here
V8_DEPRECATED("Use maybe version", int32_t Int32Value() const);
^
/app/.node-gyp/10.15.3/include/node/v8config.h:324:3: note: in definition of macro ‘V8_DEPRECATED’
declarator __attribute__((deprecated(message)))
^
SOLINK_MODULE(target) Release/obj.target/node_expat.node
COPY Release/node_expat.node
make: Leaving directory '/tmp/build_c3cb8f26de145fdc95dbb7c74ca4abea/node_modules/node-expat/build'
> iconv@2.3.1 install /tmp/build_c3cb8f26de145fdc95dbb7c74ca4abea/node_modules/iconv
> node-gyp rebuild
make: Entering directory '/tmp/build_c3cb8f26de145fdc95dbb7c74ca4abea/node_modules/iconv/build'
CXX(target) Release/obj.target/iconv/src/binding.o
CC(target) Release/obj.target/iconv/deps/libiconv/lib/iconv.o
CC(target) Release/obj.target/iconv/support/localcharset.o
SOLINK_MODULE(target) Release/obj.target/iconv.node
COPY Release/iconv.node
make: Leaving directory '/tmp/build_c3cb8f26de145fdc95dbb7c74ca4abea/node_modules/iconv/build'
> execSync@1.0.2 install /tmp/build_c3cb8f26de145fdc95dbb7c74ca4abea/node_modules/execSync
> node install.js
[execsync v1.0.2] Attempting to compile native extensions.
[execSync v1.0.2]
Native code compile failed!!
added 760 packages from 579 contributors and audited 3610 packages in 38.646s
found 111 vulnerabilities (46 low, 49 moderate, 16 high)
run `npm audit fix` to fix them, or `npm audit` for details
-----> Build
Running build
> udemy-nodejs-angular2@1.0.0 build /tmp/build_c3cb8f26de145fdc95dbb7c74ca4abea
> del-cli public/js/app && webpack --config webpack.config.dev.js --progress --profile --watch
0% compiling
Webpack is watching the files…
10% building modules 0/1 modules 1 active ...dc95dbb7c74ca4abea/assets/app/main.ts
[at-loader] Using typescript@2.6.2 from typescript and "tsconfig.json" from /tmp/build_c3cb8f26de145fdc95dbb7c74ca4abea/tsconfig.json.
18812ms building modules
77ms sealing
0ms optimizing
0ms basic module optimization
66ms module optimization
27ms advanced module optimization
0ms basic chunk optimization
0ms chunk optimization
0ms advanced chunk optimization
1ms module and chunk tree optimization
48ms module reviving
6ms module order optimization
9ms module id optimization
10ms chunk reviving
1ms chunk order optimization
45ms chunk id optimization
116ms hashing
1ms module assets processing
1746ms chunk assets processing
6ms additional chunk assets processing
0ms recording
0ms additional asset processing
1ms chunk asset optimization
494ms asset optimization
206ms emitting
Hash: bdcd2d9b22529d57e9ea
Version: webpack 2.7.0
Time: 21715ms
Asset Size Chunks Chunk Names
0.chunk.js 672 kB 0 [emitted] [big]
1.chunk.js 45.2 kB 1 [emitted]
bundle.js 29.8 MB 2 [emitted] [big] app
[0] ./~/@angular/core/esm5/core.js 542 kB {2} [built]
[] -> factory:568ms building:8004ms dependencies:14ms = 8586ms
[4] ./~/tslib/tslib.es6.js 8.03 kB {2} [built]
[] -> factory:1256ms building:1025ms = 2281ms
[46] ./~/@angular/platform-browser/esm5/platform-browser.js 159 kB {2} [built]
[] -> factory:570ms building:4258ms dependencies:5ms = 4833ms
[785] ./~/@angular/platform-browser-dynamic/esm5/platform-browser-dynamic.js 24.9 kB {2} [built]
[] -> factory:96ms building:89ms dependencies:464ms = 649ms
[786] ./assets/app/app.module.ts 4.19 kB {2} [built]
[] -> factory:11ms building:71ms = 82ms
[787] ./assets/app/polyfills.ts 163 bytes {2} [built]
[] -> factory:9ms building:9ms = 18ms
[788] ./~/hammerjs/hammer.js 73.8 kB {2} [built]
[] -> factory:95ms building:643ms = 738ms
[820] ./~/@angular/platform-browser/esm5/animations.js 28 kB {2} [built]
[] -> factory:571ms building:292ms dependencies:499ms = 1362ms
[821] ./assets/app/app.component.ts 1.58 kB {2} [built]
[] -> factory:27ms building:112ms dependencies:431ms = 570ms
[822] ./assets/app/app.routing.ts 3.79 kB {2} [built]
[] -> factory:28ms building:176ms dependencies:12ms = 216ms
[823] ./assets/app/errors/error.component.ts 2.12 kB {2} [built]
[] -> factory:32ms building:343ms dependencies:195ms = 570ms
[825] ./assets/app/header.component.ts 1.53 kB {2} [built]
[] -> factory:28ms building:129ms dependencies:413ms = 570ms
[826] ./assets/app/main.ts 338 bytes {2} [built]
factory:30ms building:7552ms = 7582ms
[830] ./assets/app/messages/message.module.ts 1.78 kB {2} [built]
[] -> factory:34ms building:372ms dependencies:1123ms = 1529ms
[832] ./assets/app/setup/job.module.ts 4.54 kB {2} [built]
[] -> factory:36ms building:471ms dependencies:1277ms = 1784ms
+ 1707 hidden modules
-----> Timed out running buildpack Node.js
! Timed out compiling app (60 minutes)
! See https://devcenter.heroku.com/articles/slug-compiler#time-limit
检测到Node.js应用程序
----->创建运行时环境
NPM_配置_日志级别=错误
NODE\u VERBOSE=false
节点_ENV=生产
节点\模块\缓存=真
----->安装二进制文件
engines.node(package.json):未指定
engines.npm(package.json):未指定(使用默认值)
正在解析节点版本10.x。。。
正在下载和安装节点10.15.3。。。
使用默认npm版本:6.4.1
----->恢复缓存
由于节点、npm、纱线或堆栈的版本发生更改,未还原缓存的目录
此版本的模块安装可能需要更长的时间
----->安装依赖项
安装节点模块(package.json+包锁)
>节点-expat@2.3.17安装/tmp/build_c3cb8f26de145fdc95dbb7c74ca4abea/node_模块/node expat
>节点gyp重建
make:输入目录“/tmp/build_c3cb8f26de145fdc95dbb7c74ca4abea/node_modules/node expat/build”
CC(target)Release/obj.target/expat/deps/libexpat/lib/xmlparse.o
../deps/libexpat/lib/xmlparse.c:在函数“聚集时间熵”中:
../deps/libexpat/lib/xmlparse.c:780:7:警告:变量'gettimeofday_res'已设置但未使用[-Wunused但已设置变量]
int gettimeofday_res;
^
CC(target)Release/obj.target/expat/deps/libexpat/lib/xmltok.o
CC(target)Release/obj.target/expat/deps/libexpat/lib/xmlrole.o
AR(目标)发布/obj.target/deps/libexpat/libexpat.a
副本发布/libexpat.a
CXX(目标)发布/obj.target/node_expat/node expat.o
../node-expat.cc:在静态成员函数“static Nan::Nan\u METHOD\u RETURN\u TYPE Parser::Parse(Nan::Nan\u METHOD\u ARGS\u TYPE)”中:
../node expat.cc:103:47:警告:“v8::Local v8::Value::ToObject()const”已弃用:请使用可能的版本[-Wdeprecated声明]
本地对象=信息[0]->ToObject();
^
在/app/.node gyp/10.15.3/include/node/node.h:63:0中包含的文件中,
来自../node_modules/nan/nan.h:52,
来自../node expat.cc:1:
/app/.node gyp/10.15.3/include/node/v8.h:10046:15:注意:此处声明
局部值::ToObject()常量{
^
../node-expat.cc:在静态成员函数“static Nan::Nan\u METHOD\u RETURN\u TYPE Parser::SetUnknownEncoding(Nan::Nan\u METHOD\u ARGS\u TYPE)”中:
../node expat.cc:470:59:警告:“int32_t v8::Value::Int32Value()const”已被弃用:请使用可能的版本[-Wdeprecated声明]
解析器->xmlEncodingInfo->map[i]=m->Int32Value();
^
在/app/.node gyp/10.15.3/include/node/v8.h:26:0中包含的文件中,
来自/app/.node gyp/10.15.3/include/node/node.h:63,
来自../node_modules/nan/nan.h:52,
来自../node expat.cc:1:
/app/.node gyp/10.15.3/include/node/v8.h:2478:46:注意:此处声明
V8_已弃用(“使用可能版本”,int32_t Int32Value()常量);
^
/app/.node gyp/10.15.3/include/node/v8config.h:324:3:注意:在宏“V8_已弃用”的定义中
声明器u u属性_uuu((已弃用(消息)))
^
SOLINK_模块(目标)发布/obj.target/node_expat.node
复制发布/node\u expat.node
make:离开目录“/tmp/build_c3cb8f26de145fdc95dbb7c74ca4abea/node_modules/node expat/build”
> iconv@2.3.1安装/tmp/build_c3cb8f26de145fdc95dbb7c74ca4abea/node_模块/iconv
>节点gyp重建
make:输入目录“/tmp/build_c3cb8f26de145fdc95dbb7c74ca4abea/node_modules/iconv/build”
CXX(目标)发布/obj.target/iconv/src/binding.o
CC(target)Release/obj.target/iconv/deps/libiconv/lib/iconv.o
CC(target)Release/obj.target/iconv/support/localcharset.o
SOLINK_模块(目标)发布/obj.target/iconv.node
复制发布/iconv.node
make:离开目录“/tmp/build_c3cb8f26de145fdc95dbb7c74ca4abea/node_modules/iconv/build”
> execSync@1.0.2安装/tmp/build_c3cb8f26de145fdc95dbb7c74ca4abea/node_模块/execSync
>node install.js
[execsync v1.0.2]正在尝试编译本机扩展。
[execSync v1.0.2]
本机代码编译失败!!
在38.646s中添加了579个贡献者的760个包,并审核了3610个包
发现111个漏洞(46个低、49个中等、16个高)
运行'npm audit fix'修复它们,或运行'npm audit'获取详细信息
----->建造
运行构建
>我的点头-angular2@1.0.0build/tmp/build_c3cb8f26de145fdc95dbb7c74ca4abea
>del cli public/js/app&&webpack--config webpack.config.dev.js--progress--profile--watch
0%正在编译
Webpack正在查看文件…
10%建筑模块0/1模块1激活…dc95dbb7c74ca4abea/assets/app/main.ts
[at loader]使用typescript@2.6.2来自typescript和/tmp/build_c3cb8f26de145fdc95dbb7c74ca4abea/tsconfig.json的“tsconfig.json”。
18812ms建筑模块
77ms密封
0ms优化
0ms基本模块优化
66ms模块优化
27ms高级模块优化
0ms基本块优化
0ms块优化
0ms高级块优化
1ms模块与区块树优化
48ms模块恢复
6ms模块顺序优化
9ms模块id优化
10ms块恢复
1ms块顺序优化
45ms区块id优化
116ms散列
1ms模块资产处理
1746ms块资产处理
6ms附加块资产处理
0毫秒记录
0ms附加资产处理
1ms区块资产优化
494ms资产